urllib :
import urllib
urllib.urlopen("網址") -> 用來開特定的網址給一個object
def :
def get(self):
print "hi !"
def 用來宣告function
strip() :
A = "Bar"
A.strip() --> 結果為 'Bar'
hasattr():
class Test(object):
def get(self):
print "hi !"
Axe = property(get)
hasattr(Test, "Axe") --> 結果為True
hasattr(Test, "Ass") --> 結果為False
全站熱搜