Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson11_4
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
dc6ca468
authored
Oct 08, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
dc70412a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
0 deletions
func.py
速度放缓卢萨卡觉得好吃;uayhuayh.ty/a.py/a.py
速度放缓卢萨卡觉得好吃;uayhuayh.ty/a.py/b.py
func.py
0 → 100644
View file @
dc6ca468
def
nee
():
total
=
[]
while
True
:
unit
=
input
(
"请输入:"
)
if
unit
==
'q'
:
break
else
:
try
:
int
(
unit
)
except
:
print
(
'暂不支持输入汉字!'
)
else
:
total
.
append
(
unit
)
finally
:
print
(
'-'
*
30
)
return
total
def
ew
(
qianzonghe
):
cot
=
0
for
i
in
qianzonghe
:
cot
+=
i
return
cot
a
=
nee
()
pay
=
ew
(
a
)
print
(
'你一共消费了'
+
pay
+
'元!'
)
速度放缓卢萨卡觉得好吃;uayhuayh.ty/a.py/a.py
0 → 100644
View file @
dc6ca468
try
:
try
:
age
=
int
(
input
(
'你今年几岁了?'
))
except
:
print
(
'请输入数字!!!!!!!!!!!!!!!!!!!!!!'
)
else
:
if
age
>
18
:
print
(
'恭喜你,成年了!'
)
print
(
'程序结束!'
)
\ No newline at end of file
速度放缓卢萨卡觉得好吃;uayhuayh.ty/a.py/b.py
0 → 100644
View file @
dc6ca468
++ "b/\351\200\237\345\272\246\346\224\276\347\274\223\345\215\242\350\220\250\345\215\241\350\247\211\345\276\227\345\245\275\345\220\203\357\274\233uayhuayh.ty/a.py/b.py"
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