Commit a3ec001f by BellCodeEditor

save project

parent 10633253
Showing with 11 additions and 15 deletions
from tkinter import filedialog, TK import csv
from PIL import Image
root = Tk() data = [["姓名","语文","数学","英语"],
root = withdraw() ["小贝",-1,0,0],
path = filedialog.askopenfilenames(title = '选择图片文件', ["聪聪",3,3,-1]]
filetypes = [("png",".png")],
initialdir = "./")
sequence = []
for i in path:
img = image.open(i)
sequence.append(img)
with open("scores.csa","w",encoding="utf-8",newline='')as csvfile:
sequence[0].save("bot.gif",save_all = True, writer = csv.writer(csvfile)
append_images = sequence[1:]) writer.writerows(data)
\ No newline at end of file \ No newline at end of file
姓名,语文,数学,英语
小贝,-1,0,0
聪聪,3,3,-1
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