看板
[ Python ]
討論串[問題] constructor
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
我手邊有一個案子. python system是一個在Linux上面執行的app. python 跑了一周左右會莫名的掛掉. Linux活著 因此推測是python 吃了太多系統資源而被OS關掉. 其中一個徵兆是free memory不斷的減少. 因此推測python app有memory leak
(還有369個字)
內容預覽:
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
下一頁
尾頁