使用Python对文件进行打开,关闭,读取,写入等操作
目标:达到excel和R tidyverse的水平。
data = open("D:/Users/Desktop/Length.txt","r")
while True:
line = data.readline()
if len(line)==0:
break
print(line)
data.close()
目标:达到excel和R tidyverse的水平。
data = open("D:/Users/Desktop/Length.txt","r")
while True:
line = data.readline()
if len(line)==0:
break
print(line)
data.close()
本文标题:Python学习笔记03文件操作
本文链接:https://www.haomeiwen.com/subject/nhopkctx.html
网友评论