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
cb69d02d
authored
Jul 23, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
93a32b13
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
func.py
vjfhegjrghjer.py
func.py
View file @
cb69d02d
...
@@ -7,4 +7,14 @@ def baby():
...
@@ -7,4 +7,14 @@ def baby():
else
:
else
:
jntm
.
append
(
ngm
)
jntm
.
append
(
ngm
)
print
(
jntm
)
print
(
jntm
)
baby
()
def
baby
():
jntm
=
[]
while
True
:
ngm
=
input
(
'请输入你点的菜品(输入p退出):'
)
if
ngm
==
'p'
:
break
else
:
jntm
.
append
(
ngm
)
print
(
jntm
)
baby
()
baby
()
\ No newline at end of file
vjfhegjrghjer.py
View file @
cb69d02d
...
@@ -2,4 +2,7 @@ try:
...
@@ -2,4 +2,7 @@ try:
a
=
int
(
input
(
'你几岁'
))
a
=
int
(
input
(
'你几岁'
))
except
:
except
:
print
(
'你给我tm输入整数!'
)
print
(
'你给我tm输入整数!'
)
print
(
'程序结束了'
)
else
:
\ No newline at end of file
if
a
<
18
:
print
(
'不可以喝酒,开车,抽烟,唱,跳,rap'
)
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