Commit 61163cfd by BellCodeEditor

save project

parent a99fa455
Showing with 17 additions and 6 deletions
from tkinter import filedialog , Tk
path = filedialong.askopenfilenames(title="选择图片文件",filetypes=""
# -*- coding: UTF-8 -*-
for i in range(1,10): import csv
for j in range(1,i+1): subject = ["姓名","功绩","寿命","影响"]
score1 = ["列宁","S","A","S"]
print(j,'*',i,'=',(j*i),end=" ") score2 = ["斯大林","A","A","S"]
print() with open("scores.csv","w",encoding="utf-8") as file:
writer = csv.writer(file)
writer.writerow(subject)
writer.writerow(score1)
writer.writerow(score2)
\ No newline at end of file
姓名,功绩,寿命,影响
列宁,S,A,S
斯大林,A,A,S
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