小编use*_*340的帖子

在Python中的文本文件的特定行中附加数据?

假设我有这个文本文件:date.txt.一个月|天|一年

January|20|2014
February|10|
March|5|2013
Run Code Online (Sandbox Code Playgroud)

我想在二月| 10 |之后放入2012.我怎样才能做到这一点?

python text file

1
推荐指数
1
解决办法
1万
查看次数

标签 统计

file ×1

python ×1

text ×1