Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson11_2
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
95bf2bef
authored
Mar 12, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
d491eda6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
1.py
1.py
View file @
95bf2bef
def
a
():
def
a
():
b
=
[]
b
=
[]
while
1
:
while
1
:
c
=
input
(
"请输入
(q退出
):"
)
c
=
input
(
"请输入
游戏序号(q退出,1末日文字生存日记
):"
)
if
c
==
"q"
:
if
c
==
"q"
:
break
break
else
:
else
:
try
:
try
:
c
=
int
(
c
)
c
=
int
(
c
)
except
:
except
:
print
(
"请重新输入
一个数
"
)
print
(
"请重新输入"
)
else
:
else
:
b
.
append
(
c
)
print
(
"正在打开中..."
)
print
(
"-"
*
30
)
break
print
(
b
)
print
(
"-"
*
50
)
a
()
a
()
\ No newline at end of file
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