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
ac08a225
authored
Mar 11, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
578e41ee
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
93 additions
and
0 deletions
1'py
1.py
__pycache__/py.cpython-37.pyc
py.py
pypy.py
pypypy.py
1'py
0 → 100644
View file @
ac08a225
a=[]
\ No newline at end of file
1.py
0 → 100644
View file @
ac08a225
a
=
[
12
,
3214
,
5
,
35
,
4
,
65
,
7
,
47
,
867
,
9
,
869
,
2
]
for
n
in
a
:
print
(
n
)
\ No newline at end of file
__pycache__/py.cpython-37.pyc
0 → 100644
View file @
ac08a225
File added
py.py
0 → 100644
View file @
ac08a225
def
e
():
a
=
[]
while
True
:
s
=
input
(
'请输入价格(按k结算)'
)
if
s
==
'k'
:
return
a
else
:
a
.
append
(
int
(
s
))
def
en
(
b
):
l
=
0
for
i
in
b
:
l
=
l
+
i
return
l
pypy.py
0 → 100644
View file @
ac08a225
def
c
(
v
,
j
):
e
=
v
*
j
/
2
return
e
x
=
c
(
j
=
input
(
'请输入三角形的高:'
)
int
(
j
),
v
=
input
(
'请输入三角形的底:'
)
int
(
v
))
print
(
'三角形的面积为'
+
str
(
x
))
pypypy.py
0 → 100644
View file @
ac08a225
import
py
n
=
py
.
e
()
x
=
py
.
en
(
n
)
print
(
'您一共需要支付'
,
x
,
'元。'
)
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