Commit 374bd268 by BellCodeEditor

auto save

parent 5ab4aa94
Showing with 37 additions and 0 deletions
with open("scores.csv", "w",encoding="utf-8",newline='') as f:
writer = csv.writer(f)
writer.writerow(["小贝",98,99,92])
writer.writerow(["聪聪"95,91,95])
import csv
data = [95,92,94]
with open("scores.csv", "w") as csvfile:
writer = csv.writer(csvfile)
writer.writerow(data)
import csv
with open("scores.csv", "r",encoding="utf-8") as f:
f_csv = csv.reader(r)
print(f_csv)
f_csv = list(f_csv)
print(f_csv)
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