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
9d39700d
authored
a year ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
367d5eb7
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
11 deletions
1/121212.py
1/12122.py
123.py
func.py
1/121212.py
View file @
9d39700d
a
=
0
def
qwer
():
def
qwer
():
total
=
[]
total
=
[]
while
True
:
while
True
:
...
@@ -5,14 +6,11 @@ def qwer():
...
@@ -5,14 +6,11 @@ def qwer():
if
unit
==
'q'
:
if
unit
==
'q'
:
break
break
else
:
else
:
try
:
unit
=
int
(
unit
)
except
:
print
(
"请重新输入"
)
else
:
total
.
append
(
unit
)
total
.
append
(
unit
)
print
(
"-"
*
30
)
return
total
return
total
result
=
qwer
()
result
=
qwer
()
def
for
i
in
range
()
a
=
a
+
i
print
(
result
)
print
(
result
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
1/12122.py
0 → 100644
View file @
9d39700d
a
=
0
def
qwer
():
total
=
[]
while
True
:
unit
=
input
(
"请输入:"
)
if
unit
==
'q'
:
break
else
:
total
.
append
(
unit
)
return
total
result
=
qwer
()
def
for
i
in
range
()
a
=
a
+
i
print
(
result
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
123.py
0 → 100644
View file @
9d39700d
import
func
func
.
qwer
()
func
.
qwert
\ No newline at end of file
This diff is collapsed.
Click to expand it.
func.py
View file @
9d39700d
a
=
0
def
qwer
():
def
qwer
():
total
=
[]
total
=
[]
while
True
:
while
True
:
...
@@ -9,7 +8,8 @@ def qwer():
...
@@ -9,7 +8,8 @@ def qwer():
total
.
append
(
unit
)
total
.
append
(
unit
)
return
total
return
total
result
=
qwer
[]
def
qwert
()
result
=
qwer
()
for
i
in
range
()
for
i
in
range
()
a
=
a
+
i
print
(
result
)
print
(
result
)
\ No newline at end of file
\ No newline at end of file
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