python 类
構(gòu)造函數(shù):
在類創(chuàng)建對象時, 默認(rèn)調(diào)用,如果沒有__init__(self) 函數(shù), 會自動加一個空的構(gòu)造函數(shù)。
def __init__(self):
? ?? pass
?
轉(zhuǎn)載于:https://www.cnblogs.com/padingdun/p/9969372.html
總結(jié)
- 上一篇: ajax请求, 前后端, 代码示例
- 下一篇: websocket python爬虫_p