Questions tagged as 'python-3.x'

2
answers

Image upload using CGI Python - It does not work!

Hello, I created an html file with one and I want to select an image from a directory and after clicking on submit this image should be saved in another directory. Any help? This is what I've tried so far ... index.html <form name="py...
asked by 29.04.2016 / 21:46
1
answer

How do you make a socket that actually connects to other computers?

I tried to make a socket in Python 3.5.1, but when I went to test it, it only connects with me. I tried connecting to another computer (from my friend), but it does not connect. Does anyone know how to make a socket that actually connects? If...
asked by 13.07.2016 / 02:06
1
answer

Error with Django and Cloudinary - can not use the string pattern on a bytes-like object

I'm trying to make a simple app: I've done the Django Girls tutorial and now I'm trying to use it as well including an image using the < a href="http://cloudinary.com/"> Cloudinary But I'm having the following error: Theerroroccursatl...
asked by 03.02.2016 / 20:22
1
answer

Error: "no module named xxxx"

I have Python installed in my pcs (Windows 7 and 8) but I can not execute any script that contains import . The error message always appears:    import error: no module named xxxx.     
asked by 12.11.2015 / 11:59
1
answer

Print multiple lists each in one column

I have five lists that have been extracted from an Excel table in CSV. I would like to know how I can print them in the terminal side by side, I believe it can be done with a for loop, but I did not get the syntax. a = [] b = [] c = []...
asked by 29.12.2018 / 03:19
1
answer

How to create a JSON map based on indented file

Hello, I have a problem that is the following I have a map with the following format and I need to create a script that converts that map to a specific JSON template in python: Map template: TELEFONIA + CELULAR + CORRETOR + a...
asked by 07.12.2018 / 17:04
1
answer

How to copy a .txt file that updates the name daily - Python

I need to copy a TXT file daily from one folder to another, but the file is renamed according to the date, the end after the "_" always changes with the date value. Ex: _20181205.txt , _20181206.txt , _20190101.txt . Bel...
asked by 05.12.2018 / 14:03
1
answer

XOR operation filtering the values of my list in the DataFrame columns

I have multiple lists and a single dataframe, my goal is to filter my columns containing the same values from my list and create a XOR operation dynamically. When I find my XOR result equal to 0, the line of my result should be deleted. l1 = [...
asked by 15.12.2018 / 18:34
1
answer

Question about Python Apis [closed]

Good morning! I need to make a program that simulates the operation of a "user", these operations are taken based on various circumstances, would have to send code via Linux Terminal and Windows cmd and also observe fields of an assisted syst...
asked by 21.11.2018 / 08:31
1
answer

Error: Deploy Python Heroku - runtime (python-3.4.0) is not available

Pesoal, all good. Can anyone help me solve the following problem: I'm doing an application in Django and now I'm in the process of doing the upload to the server. I'll send it to Heroku. I made the following commands: Creating git re...
asked by 18.11.2018 / 21:01