Questions tagged as 'python-3.x'

2
answers

How to move multiple ZIP files at once with Python

I'm creating a function to manage files using python. I would like this function to do the following: grab all my zip or mp3 files (or other formats) and move all at once to a folder. os.chdir('C:\') shutil.copy('C:\Users\ODIN\Downloads\...
asked by 19.06.2018 / 01:47
0
answers

How to find out which services are running on a port with python?

I wanted to integrate my question with this code: #!/usr/bin python3 # coding: utf-8 import argparse import socket import os import sys def Logo(): print (''' ______ ____ __________ ___ / / /_ \/ /__ ___/ __ /_/ / __ / _____ \ _...
asked by 29.06.2018 / 23:52
0
answers

Import math into python 3.6 (pycharm)

I'm starting my studies in programming, I decided to start with python, and in one of the videotapes the teacher said to type: import math But when I type import I can not find this library, and videotape is dated from last year. I would li...
asked by 01.07.2018 / 00:55
1
answer

Problem with arrays in Python 3.6

I started a short course on deep learning with Python, but I ended up having a problem with arrays ...   I usually pick up the class code and change it quite a bit before creating an original, but this time when I circled the code studied, it ga...
asked by 29.05.2018 / 23:16
1
answer

Error when running PIP command in Docker

I have a python project that runs inside a Docker. When the (Build) image is assembled reliably from a RUN pip install -r requirements.txt but when it executes the command it returns a connection error. Complete Dockerfile FROM pyt...
asked by 05.06.2018 / 22:09
0
answers

HTTPServer receives Axios OPTIONS and vue-resource

When I send a request with Axios or Vue-Resource, with the http server I end up getting an OPTIONS instead of DELETE, POST, or PUT. Requests: this.$axios.put('http://192.168.0.103:3389', {teste: 'teste'}).then(function (res) { console.lo...
asked by 20.05.2018 / 17:49
1
answer

Checking clients using curl python

I have a list in .txt in the email | password format of my clients and I want to check the integrity of some entries. I wanted to create a variable that would catch line by txt line and change in curl payload the email and password. For example,...
asked by 18.05.2018 / 01:01
1
answer

Problem with geometry pack and grid (tkinter)

To tell you the truth these two geometries are very complicated, but unfortunately I need to use this 2 in this project. So come on. First follow the code: from tkinter import* from tkinter.ttk import * class principal: def __init__(s...
asked by 02.06.2018 / 02:10
0
answers

Multiple search engines in a html file with variable parameters

Good morning everyone. Need to search for the name of the presidents of Brazil, in html files. I created a json with the names of the presidents to facilitate. Follow the code: # !/bin/env python # coding: utf-8 __author__ = '@britodfb...
asked by 26.06.2018 / 16:42
0
answers

Installing PIP (python package index)

When I try to install the pip from the command prompt, I get the following message    coud not find a version tha satisfier the requerement install (from versions :) No matching distribution found for install Python 3.6 installed on the m...
asked by 16.05.2018 / 13:56