ex22_list.txt
print("something") # show something on the terminal
print("age: ", 23)
print("age: ", 20 + 3)
print("age: ", age)
print(f"age: {age}")
print("age: { }".format('23'))
round() # round(1.7333) = 2
round(1.7333, 2) = 1.73
input() # accept a stander input, return a string
open() # open the file
close() # close the file
f.read() # read the contents of the file
f.readline() # read just one line of the file
f.write('stuff') # write 'stuff' to the file
truncate # empties the file
seek(0) # move the read/write location to the beginning of the file
end = '' # not end the line with a \n
from sys import argv # get argv from the pakage(sys)
from os.path import exists # get exists from the os.path
echo "I love qj." > test.txt # transport the string to test.txt
def # define a function
# # octothorpe or pound
+ # plus
- # minus
/ # slash
\ # backslash
* # asterisk
% # percent
< # less-than
> # greater-than
= # single-equal
== # double-equal
<= # less-than-equal
>= # greater-than-equal
' # single-quotes
" # double-quotes
''' # three single-quotes
""" # three double-quotes
\n # backslash n
\t # backsalsh t
: # colon