Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson11_5
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
0ef124b4
authored
3 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
8de806f1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
13 deletions
__pycache__/func.cpython-37.pyc
aaa.py
func.py
ll.py
__pycache__/func.cpython-37.pyc
0 → 100644
View file @
0ef124b4
File added
This diff is collapsed.
Click to expand it.
aaa.py
0 → 100644
View file @
0ef124b4
import
func
bbb
=
func
.
aaa
()
ccc
=
func
.
a
(
bbb
)
print
(
'运动员的总分是'
+
str
(
ccc
))
\ No newline at end of file
This diff is collapsed.
Click to expand it.
func.py
View file @
0ef124b4
...
@@ -12,7 +12,7 @@ def aaa():
...
@@ -12,7 +12,7 @@ def aaa():
else
:
else
:
total
.
append
(
unit
)
total
.
append
(
unit
)
print
(
'-'
*
30
)
print
(
'-'
*
30
)
print
(
total
)
#
print(total)
return
total
return
total
#----------------------------------------------------------------------------------
#----------------------------------------------------------------------------------
def
a
(
y
):
def
a
(
y
):
...
@@ -21,6 +21,6 @@ def a(y):
...
@@ -21,6 +21,6 @@ def a(y):
b
=
b
+
i
b
=
b
+
i
return
b
return
b
#----------------------------------------------------------------------------------
#----------------------------------------------------------------------------------
d
=
aaa
()
# d=aaa()
e
=
a
(
d
)
# e=a(d)
print
(
e
)
# print(e)
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ll.py
View file @
0ef124b4
#
try:
try
:
#
a=int(input(('你今年几岁了?')))
a
=
int
(
input
((
'你今年几岁了?'
)))
#
except:
except
:
#
print('要输入整数啊')
print
(
'要输入整数啊'
)
#
else:
else
:
#
if a<18:
if
a
<
18
:
#
print('不可以喝酒哦')
print
(
'不可以喝酒哦'
)
#
print('程序结束~~')
print
(
'程序结束~~'
)
This diff is collapsed.
Click to expand it.
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