Python Note

1. Programs are usually created by typing definitions into a separate file called amoduleor script. This file is saved on a disk so that it can be used over and over again.

2. Technically, Python uses a hybridcompiling/interpreting process. The Python source in the module file is compiled into more primitive instructions calledbyte code. This byte code (the.pyc) file is then interpreted. Having a .pyc file available makes importing a module faster the second time around. However, you may delete the byte code files if you wish to save disk space; Python will automatically re-create them as needed.

3. Python provides a better mechanism. The raw input function is exactly like input except it does not evaluate the expression that the user types.

你可能感兴趣的:(Python Note)