Commit 9ce189bb by BellCodeEditor

save project

parent 016fefd1
Showing with 6 additions and 16 deletions
with open(r'c:\Users\Administrator\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8')as file:
a=file.readlines()
for i in a:
data=i.split()
s=data[1:]
a=0
for d in s:
a=a+int(d)
b=data[0]+str(a)
print(b)
\ No newline at end of file
username="python"
userpassword="789456"
name=input("请输入用户名:")
password=input("请输入密码:")
if username==name and userpassword==password:
print("登入成功")
w 11 12 13 1 1 1 1 1 1 11 114 44 55
s 33 44 55 66 22 11 33
l 65 78 90 23 555 776 223 54 66 12
u 43 6 3 3 3 3 3 3 3 3 45 45
\ 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