py05_01: Learn modules,

Module is a file that contains all the functions and variables that you have defined, its name suffix .py. May be introduced into another program module, the function or the like to use the function module. This is also the use of python standard library.

Custom module (defined as the test.py)

import test

Use a variable name: test.name       

Using the method say: test.say ()

  

Guess you like

Origin www.cnblogs.com/yeyu1314/p/12432577.html