Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
level3-lesson18-diy2
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
155c5682
authored
Jan 08, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
a469a5b7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
my_app.py
my_app.py
View file @
155c5682
import
tkinter
import
tkinter
from
tkinter
import
messagebox
from
tkinter
import
messagebox
import
json
import
json
...
@@ -26,12 +27,8 @@ def register(): # 注册验证
...
@@ -26,12 +27,8 @@ def register(): # 注册验证
messagebox
.
showwarning
(
'错误'
,
'密码不一致'
)
messagebox
.
showwarning
(
'错误'
,
'密码不一致'
)
else
:
else
:
users
[
name
]
=
password1
users
[
name
]
=
password1
#with open('users.txt','w',encoding='utf-8')as f:
with
open
(
'users.txt'
,
'w'
,
encoding
=
'utf-8'
)
as
file
:
#file.write(content)
file
.
write
(
content
)
#messagebox.showinfo('成功','成功')
#login.show()
def
login
():
# 登录验证
def
login
():
# 登录验证
pass
pass
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment