Posts by Henrique • 417 points
8 posts
-
2
votes1
answer2027
viewsQ: Python - Run two scripts at once
In have a file x.py and the y.py, in another file I have the following code: import os os.system('py -3.7 x.py') os.system('py -3.7 y.py') But the problem is that the y.py only executes when…
-
1
votes1
answer383
viewsQ: Python - What is Enum?
I used the type function on an object and the returned was: <enum 'Button'>. What does that mean?
-
9
votes2
answers413
viewsQ: What’s the difference between "Issues" and "Pull Requests"?
In a Github repository, what is the difference between "Issues" and "Pull Requests"?
-
2
votes1
answer35
viewsQ: Git and Github: Need to remote more than once?
When I’m going to do the procedure to upload the files from my directory to Github, through Git, I need to give git remote add origin ... every time or only the first time is enough?…
-
6
votes3
answers4481
viewsQ: Difference from: "git commit -am" and "-m"
What would be the difference between typing: git commit -m "Teste" and git commit -am "Teste"? I’m learning about Git and would like to know how to differentiate it.…
-
9
votes4
answers2878
viewsQ: Two "Return" in a function
How it works if there are two (+) return in a Python function? It would return the second value, or only the first? Example: def soma(a, b): x = a + b y = 'qualquer coisa' return x return y…
-
0
votes1
answer49
viewsQ: Python - Doubt about imports in the creation of libraries
If I’m creating a library, and I put in it import json, in my main (my main file) I would have to import the json or just import from my own library? Thanks for your help.…
-
1
votes2
answers106
viewsQ: Python - libraries without import "*"
How do I create a library without having to matter like that: from x import * or from x import y? Only by importing import x. Who will answer me, please use the script below as a library example.…