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

arrow
arrow
    全站熱搜

    Howard1981 發表在 痞客邦 留言(0) 人氣()