################################
# 測試函數運行內存
# coding=utf-8
# pip install memory_profiler
# pip install psutil
# 在pycharm包管理器裏裝
from memory_profiler import profileapp
@profile
def test():
list_m = []函數
for i in range(1000000):
list_m.append(i)測試
print len(list_m)ip
test()
################################內存