Commit 070f1009 by BellCodeEditor

auto save

parent 024fb164
Showing with 57 additions and 9 deletions
# 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('李自渊')
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
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
total.append(unit)
print(total)
\ No newline at end of file
def qw():
qwe=[]
while True:
a=input('输入')
if a=='q':
break
else:
try:
a=int(a)
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment