1。import math ,無分號結尾,函數
函數定義:對象
x= 1class
def change():import
x= 10;im
print x;math
print x
顯示1;
x= 1
def change():
globle x ;
x= 10;
print x;
print x
顯示10;
對象定義
class MyClass:
def __ini__(self):
self.name = "orange"
def setName(name):
self.name = name
x = MyClass
print x.name