Commit adc80c2a by BellCodeEditor

save project

parent af406c84
Showing with 12 additions and 0 deletions
print(r"c:\Users\Windows\Documents\lesson13-1\sales_list.txt")
with open(r"c:\Users\Windows\Documents\lesson13-1\sales_list.txt",'r',encoding="utf-8") as file:
a = file.readlines()
for str in a :
data = str.split()
print(data[0])
print(data[1:])
\ No newline at end of file
悟空 11 12 13 14 15 16
小贝 33 32 43 23 45
李丽 22 33 44 55 66 78
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