Commit d5a6eb62 by BellCodeEditor

save project

parent 9e6cfe13
Showing with 8 additions and 2 deletions
j
# 请使用索引的知识,取出message所有元素(不用遍历的方式)
\ No newline at end of file
# 请使用索引的知识,取出message所有元素(不用遍历的方式)
with open(r'C:\Users\CM\Documennts\lesson13-1\salles_list.txt','r',encoding='utf-8') as file
a=file.readlines()
for i in a:
data=split()
print(data[0])
print(data[1:])
\ 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