Commit 3c995183 by BellCodeEditor

save project

parent da38ca64
Showing with 9 additions and 47 deletions
小黑子 1226 8988 900000000 6721212121
金毛 123 345 98765 98
书包 1234567 8 78 9098
蔡徐克 213 3456 878 56
贝二维 244 7676937777 3456 1234567892345
真爱粉 3456 678 7678 345678345674
ikun 23567 56789 345678 34567
里奥希 23456 35678 67677667756787 9899
牛鸟文 23456 12345 234 123412378
电摇小子 12345 23456 6789 8789456
开朗校长 23456 78765 87676 344
\ No newline at end of file
with open (r'c:\Users\Administrator\Documents\lesson13-3\10086.txt','r',encoding='utf-8') as file:
a=file.readlines()
final_wetrt=[]
for i in a:
data=i.split()
wetrt=0
for sales in data[1:]:
wetrt=wetrt+int(sales)
result=data[0]+str(wetrt)+'\n'
final_wetrt.append(result)
with open (r'c:\Users\Administrator\Documents\lesson13-3\ert.txt','a',encoding='utf-8') as file:
file.writelines(final_wetrt)
\ No newline at end of file
import turtle
pen=turtle.Pen()
for i in range(1,300)
Pen.forward(i)
Pen.right(i)
Pen.hideturtle()
turtle.done()
\ No newline at end of file
小黑子7621222335
金毛99331
书包1243751
蔡徐克4603
贝二维1242244833822
真爱粉345678357486
ikun460601
里奥希67677667825820
牛鸟文123448413
电摇小子8832046
开朗校长190241
小黑子7621222335
金毛99331
书包1243751
蔡徐克4603
贝二维1242244833822
真爱粉345678357486
ikun460601
里奥希67677667825820
牛鸟文123448413
电摇小子8832046
开朗校长190241
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