Commit 63845b02 by BellCodeEditor

save project

parent 0d0d9ee7
Showing with 11 additions and 12 deletions
from tkinter import filedialog, Tk import csv
from PIL import Image
rt=Tk() subject = ["姓名", "语文", "数学", "英语"]
rt.withdraw() score1 = ["小贝", 98, 99, 92]
path=filedialog.askopenfilenames(title='选择图片文件',filetypes=[('png','.png')],initialdir='./') score2 = ["聪聪", 95, 91, 95]
sequence=[]
for i in path: with open("score.csv","w",encoding="utf-8") as csvfile:
img=Image.open(i) writer = csv.writer(csvfile)
sequence.append(0,img) writer.writerow(subject)
sequence[0].save("bot.gif",save_all=True, writer.writerow(scoer1)
append_images=sequence[1:]) writer.writerow(score2)
\ No newline at end of file \ 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