Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
level3-lesson17-diy1
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
4bfafff5
authored
Sep 14, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
59201e61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
my_window.py
my_window.py
View file @
4bfafff5
import
tkinter
# 导入tkinter
import
tkinter
# 导入tkinter
def
register
():
def
register
():
# def定义register()
name
=
e1
.
get
()
# 用点记法.get()
获取用户名
name
=
e1
.
get
()
# 用点记法.get()
方法获取用户名并赋值给变量name
password1
=
e2
.
get
()
# 获取密码
password1
=
e2
.
get
()
# 获取密码
password2
=
e3
.
get
()
# 获取确认密码
password2
=
e3
.
get
()
# 获取确认密码
print
(
"用户输入的信息为:"
,
name
,
password1
,
password2
)
print
(
"用户输入的信息为:"
,
name
,
password1
,
password2
)
...
...
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