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
4ca236ed
authored
Oct 22, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
024fb164
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
68 additions
and
9 deletions
1.py
1233457766556.py
func.py
1.py
0 → 100644
View file @
4ca236ed
f
=
open
(
r"C:\Users\Administrator\Desktop\test.txt"
,
"a"
,
encoding
=
"utf-8"
f
.
write
(
"xiao lan :12B"
)
\ No newline at end of file
1233457766556.py
0 → 100644
View file @
4ca236ed
import
turtle
f
=
turtle
.
Pen
()
f
.
pensize
(
5
)
f
.
pencolor
(
"red"
)
f
.
penup
()
f
.
goto
(
-
100
,
-
80
)
f
.
pendown
()
f
.
fd
(
200
)
f
.
penup
()
f
.
goto
(
-
40
,
-
80
)
f
.
pendown
()
f
.
rt
(
90
)
f
.
fd
(
40
)
f
.
penup
()
f
.
goto
(
40
,
-
80
)
f
.
pendown
()
f
.
fd
(
40
)
f
.
rt
(
90
)
f
.
fd
(
80
)
f
.
penup
()
f
.
goto
(
100
,
-
80
)
f
.
rt
(
90
)
f
.
pendown
()
f
.
fd
(
80
)
f
.
rt
(
135
)
f
.
fd
(
80
)
f
.
rt
(
45
)
f
.
fd
(
80
)
f
.
rt
(
135
)
f
.
fd
(
80
)
f
.
lt
(
-
45
)
f
.
fd
(
200
)
f
.
lt
(
30
)
f
.
fd
(
200
)
f
.
lt
(
120
)
f
.
fd
(
200
)
f
.
lt
(
30
)
f
.
fd
(
200
)
turtle
.
done
()
\ No newline at end of file
func.py
View file @
4ca236ed
total
=
[]
def
rz
():
while
True
:
total
=
[]
unit
=
input
(
"请输入:"
)
while
True
:
if
unit
==
'q'
:
unit
=
input
(
"请输入:"
)
break
if
unit
==
'q'
:
else
:
break
total
.
append
(
unit
)
else
:
print
(
total
)
try
:
\ No newline at end of file
unit
=
int
(
unit
)
except
:
print
(
"数字!!!!!!!!!!!!!!!!!!!!!!!!!!!"
)
else
:
total
.
append
(
unit
)
finally
:
print
(
"-"
*
30
)
return
total
def
a
(
m
):
c
=
0
for
i
in
m
:
c
=
c
+
i
return
c
h
=
rz
()
g
=
a
(
m
)
print
(
str
(
g
))
\ 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