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
c5e01dc6
authored
Jun 06, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
e1ac9bbd
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
50 additions
and
0 deletions
3123.py
aaa.py
gafa.py
zhao.py
啊啊啊.py
赵木.py
赵老师.py
3123.py
0 → 100644
View file @
c5e01dc6
with
open
(
r'C:\Users\Administrator\Desktop\test.txt'
,
'a'
,
encoding
=
'utf-8'
)
as
file1
:
file1
.
write
(
'小力:12本
\n
'
)
aaa.py
0 → 100644
View file @
c5e01dc6
s
=
0
while
True
:
sum
=
input
(
"输入数字,退出'q'请按"
)
if
sum
==
"q"
:
break
else
:
try
:
new_sum
=
int
(
sum
)
except
:
print
(
"输入正确数字"
)
else
:
s
=
s
+
new_sum
print
(
s
)
gafa.py
0 → 100644
View file @
c5e01dc6
def
sum
(
a
):
s
=
0
for
i
in
range
(
a
+
1
):
s
=
s
+
i
return
s
finsh
=
sum
(
3
)
print
(
finsh
)
zhao.py
0 → 100644
View file @
c5e01dc6
def
max
(
x
,
y
):
if
x
>
y
:
return
x
else
:
return
y
finsh
=
max
(
3
,
5
)
print
(
finsh
)
\ No newline at end of file
啊啊啊.py
0 → 100644
View file @
c5e01dc6
file1
=
open
(
r'C:\Users\Administrator\Desktop\aa.txt'
,
'w'
,
encoding
=
'utf-8'
)
file1
=
open
(
r'C:\Users\Administrator\Desktop\aa.txt'
,
'w'
,
encoding
=
'utf-8'
)
\ No newline at end of file
赵木.py
0 → 100644
View file @
c5e01dc6
def
sum
(
x
,
y
):
def
sum
(
x
,
y
):
s
=
x
+
y
return
s
finsh
=
sum
(
3
,
5
)
print
(
finsh
)
\ No newline at end of file
赵老师.py
0 → 100644
View file @
c5e01dc6
import
turtle
import
turtle
def
box
():
t
=
turtle
.
Pen
()
for
i
in
range
(
4
):
t
.
forward
(
100
)
t
.
left
(
90
)
box
()
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