Python Common commands:
1.python or Python3 Open the interactive Python interpreter
2.python hello.py Run a python script from the command prompt
Interactive Python interpreter common commands: Eixt () exit
Python Common syntax:
1.print (' Hello word ') Note: python2 supports print ' Hello World ', but Python3 does not support
The 2.# comment indicates that the line is a comment
3.\ ' represent ' \ is an escape character
4.100000000000000000L is right in Python, but cannot contain L in Python3
The 5.STR,REPR function converts a Python value to a string, repr can display L for long integers
6.input assumes that the user entered a valid expression, while Raw_input is the default string
7. "'" contains characters that can be written across lines
8. The original string starts with R and is equivalent to @ in C #
9.Unicode string prefixed with u
Python Beginner's essays