Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson11_1
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
93a32b13
authored
Apr 01, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
024fb164
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
9 deletions
func.py
vjfhegjrghjer.py
func.py
View file @
93a32b13
total
=
[]
def
baby
():
while
True
:
jntm
=
[]
unit
=
input
(
"请输入:"
)
while
True
:
if
unit
==
'q'
:
ngm
=
input
(
'请输入你点的菜品(输入p退出):'
)
break
if
ngm
==
'p'
:
else
:
break
total
.
append
(
unit
)
else
:
print
(
total
)
jntm
.
append
(
ngm
)
\ No newline at end of file
print
(
jntm
)
baby
()
\ No newline at end of file
vjfhegjrghjer.py
0 → 100644
View file @
93a32b13
try
:
a
=
int
(
input
(
'你几岁'
))
except
:
print
(
'你给我tm输入整数!'
)
print
(
'程序结束了'
)
\ 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