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
070f1009
authored
Sep 08, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
024fb164
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
7 deletions
1.py
ewqsdewq.py
func.py
1.py
0 → 100644
View file @
070f1009
# file=open(r"C:\Users\Administrator\Desktop\.txt",'w',encoding='utf-8')
# file.write('nhcierecg xmwnvh:100000000000000000\n')
# file.write('gkuxfnwexnwnxewmke:0.000000000000001\n')
# file.write('qwertyuiopasdfghjklzxcvbnm:0\n')
# file.close()
#ile=open(r"C:\Users\Administrator\Desktop\test.txt",'a',encoding='utf-8') f
# file.write('qwsazx,250\n')
# file.close()
# with open(r'C:\Users\Administrator\Desktop\test.txt','a',encoding='utf-8')as file:
# # file.write('sdcfgfhb,9')
# with open(r'C:\Users\Administrator\Desktop\a.txt','r',encoding='utf-8')as file:
# pkl=file.read()
# print(pkl)
# new_data=''
# with open(r'C:\Users\Administrator\Desktop\a.txt','r',encoding='utf-8')as file:
# for i in file:
# if '李自渊' in i:
# i=i.replace('李自渊','李自渊1')
# new_data+=i
with
open
(
r'C:\Users\Administrator\Desktop\a.txt'
,
'w'
,
encoding
=
'utf-8'
)
as
file
:
file
.
write
(
'李自渊'
)
ewqsdewq.py
0 → 100644
View file @
070f1009
import
turtle
turtle
.
screensize
(
2000
,
1000
,
"white"
)
q
=
turtle
.
Pen
()
q
.
pensize
(
5
)
q
.
pencolor
(
"black"
)
i
=
1
while
True
:
q
.
speed
(
100000000000000000000000000000000000000000000000000000000000000000000000
)
q
.
forward
(
i
)
q
.
right
(
179.9
)
i
+=
1
\ No newline at end of file
func.py
View file @
070f1009
total
=
[]
def
qw
():
while
True
:
qwe
=
[]
unit
=
input
(
"请输入:"
)
while
True
:
if
unit
==
'q'
:
a
=
input
(
'输入'
)
if
a
==
'q'
:
break
break
else
:
else
:
total
.
append
(
unit
)
try
:
print
(
total
)
a
=
int
(
a
)
\ No newline at end of file
except
:
print
(
'整数'
)
else
:
qwe
.
append
(
a
)
return
qwe
def
sum
(
zxc
):
a
=
0
for
i
in
zxc
:
a
=
a
+
i
return
a
PL
=
qw
()
asd
=
sum
(
PL
)
print
(
asd
)
\ 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