基本常识
with open(path, "r+") as f:
old = f.read()
f.seek(0)
f.write(data)
f.write(old)
Debug
Python3.5中:iteritems变为items
- 【Python】ufunc 'subtract' did not contain a loop with signature matching types dtype
- Pycharm 下Non-ASCII character '\xe5' in file.. 解决办法
# -*- coding: utf-8 -*-:
网友评论