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
b43f801b
authored
Jul 11, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
6e9c5911
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
56 additions
and
0 deletions
857857.py
J.py
PPP.py
bpitr.py
dfmvm.py
eee.py
857857.py
0 → 100644
View file @
b43f801b
def
TNT
(
a
,
b
):
sum
=
a
for
i
in
range
(
b
):
sum
+=
i
print
(
sum
)
print
(
'和为:'
,
sum
)
TNT
(
1
,
20
)
\ No newline at end of file
J.py
0 → 100644
View file @
b43f801b
def
BLACKPINK
():
a
=
input
(
'输入一个数'
)
i
=
1
while
i
<=
int
(
a
):
print
(
i
)
i
+=
1
print
(
'循环结束'
)
BLACKPINK
()
\ No newline at end of file
PPP.py
0 → 100644
View file @
b43f801b
list
=
[]
try
:
a
=
int
(
input
(
'输入一个价格'
))
except
:
print
(
"你输入的不是数字"
)
else
:
list
.
append
(
a
)
print
(
"添加成功"
)
print
(
list
)
print
(
"所有操作结束"
)
\ No newline at end of file
bpitr.py
0 → 100644
View file @
b43f801b
def
Rosie
(
a
,
h
):
s
=
a
*
h
/
2
l
=
a
*
h
/
2
print
(
s
)
print
(
s
)
Rosie
(
2
,
5
)
\ No newline at end of file
dfmvm.py
0 → 100644
View file @
b43f801b
def
Away
():
s
=
(
a
+
b
)
*
2
l
=
a
*
b
print
(
s
,
l
)
Away
()
def
Lisa
(
a
,
b
):
a
=
7
*
c
b
=
8
*
d
Lisa
()
\ No newline at end of file
eee.py
0 → 100644
View file @
b43f801b
list
=
[]
try
:
a
=
int
(
input
(
'输入一个价格'
))
except
:
print
(
"你输入的不是数字"
)
else
:
list
.
append
(
a
)
print
(
"添加成功"
)
print
(
list
)
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