python常用操作
程序员文章站
2022-05-29 17:02:30
...
清空列表:
list[:] = []
替换行首行尾的\n
str = str.strip("\n")
文件追加模式写:
with open(file, 'a+') as f:
上一篇: 初探AOP FOR PHP
下一篇: php大文件上传失败该怎么办?