Commit e795ca57 by BellCodeEditor

auto save

parent 55ffd1a7
Showing with 10 additions and 6 deletions
小兰:12本小丽:11本小丽:11本
小丽:11本
小丽:11本
123,456,111456
111
python123
,123
,321
111
222
333
......@@ -4,14 +4,13 @@ def register():
password1 = d.get()
password2 = e.get()
print("用户输入的信息为:",name,password1,password2)
with open(r'C:\Users\Lenovo\Documents\level3-lesson17-diy1>','a',encoding='utf-8')as file:
file.write('%d'%name)
with open(r'C:\Users\Lenovo\Documents\level3-lesson17-diy1\1.txt','a',encoding='utf-8')as file:
file.write('%s\n%s\n%s\n'%(name,password1,password2))
root=tkinter.Tk()
screenwidth = root.winfo_screenwidth()
screenheight = root.winfo_screenheight()
a=(screenwidth-300)/2
b=(screenheight-300)/2
print(300*300+a+b)
print(screenwidth,screenheight)
root.title("window")
root.geometry("%dx%d+%d+%d" %(400,320,a,b))
......
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