看板 [ Python ]
討論串[問題] constructor
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 4→)留言5則,0人參與, 最新作者sean72 (.)時間11年前 (2014/12/16 18:24), 11年前編輯資訊
0
0
2
內容預覽:
我手邊有一個案子. python system是一個在Linux上面執行的app. python 跑了一周左右會莫名的掛掉. Linux活著 因此推測是python 吃了太多系統資源而被OS關掉. 其中一個徵兆是free memory不斷的減少. 因此推測python app有memory leak
(還有369個字)

推噓0(0推 0噓 2→)留言2則,0人參與, 最新作者sean72 (.)時間11年前 (2014/12/16 15:49), 編輯資訊
0
0
1
內容預覽:
import socket. class TCP:. def __init__(self, ip, port):. self.abc = 'hello'. s = socket.socket(xxxxxxxx). s.connect(ip, port) # use python lib to cre
(還有175個字)
首頁
上一頁
1
下一頁
尾頁