Created
January 23, 2017 12:52
-
-
Save Areso/df64c12b6dc477246b89118886055991 to your computer and use it in GitHub Desktop.
pythonsub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
bashCommand = "uptime" | |
#output = subprocess.check_output(['bash','-c', bashCommand]) | |
subprocess.Popen(bashCommand) |
Reserved Words
You cannot use reserved words as variable names / identifiers
and del for is raise assert elif from
lambda return break else global not try class except if or while
continue exec import pass yield def finally in print as with
fh = open("romeo.txt", "r")
count = 0
for line in fh:
print(line.strip())
count = count + 1
print (count,"Lines")
fh = open("romeo.txt", "r")
count = 0
for line in fh:
print line.strip()
count = count + 1
print count,"Lines"
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
grab / peewee/ urlparse / faker / six.moves.http_cookiejar