Commit 2c966a2a by BellCodeEditor

auto save

parent ab6c3f65
Showing with 18 additions and 5 deletions
# import csv
# file=open(r"C:\Users\EDY\Desktop\ngm.csv","w",newline="")
# write=csv.writer(file)
# ls=[["角色","血量","战斗力","元神"],["悟空","100","150","21"],["八戒","60","23","12"],["小A","80","65","12"]]
# #with open(r"C:\Users\EDY\Desktop\ngm.csv","w") as f:
# # pass
# #file=open(r"C:\Users\EDY\Desktop\ngm.csv",'w',encoding='utf-8')
# for row in ls:
# write.writerow(row)
# file.close()
\ No newline at end of file
message = "诺依,周末一起去看动漫展吧!"
# 请对message进行遍历,取出所有元素
for i in message:
print(i)
with open(r"C:\Users\EDY\Desktop\ngm.csv","w") as f:
pass
import csv
with open(r'C:\Users\EDY\Desktop\ngm.csv')as f:
r=csv.reader(f)
print(list(r))
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment