Commit 03c564f4 by BellCodeEditor

save project

parent af406c84
Showing with 23 additions and 0 deletions
with open(r"c:\Users\Administrator\Documents\lesson13-3\sales_list.txt",'r',encoding="utf-8") as file1:
text = file1.readlines()
#print(text)
for txt in text:
data = txt.split()
print(data[0])
print(data[1:])
\ No newline at end of file
悟空 3480
诺依 3800
小贝 1820
李丽 2010
宋扬 1070
王明 2450
李强 1640
孙小白 2220
苏琪 1370
刘若若 1470
刘阳 2260
王胜男 1230
王娇 1310
坤坤 123456
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