:
print
(
'
----------------------------
'
)
if
int(all_data[0][0])==11
:
print
(all_data[0])
控制台打印
PS E:\python\python> & "E:/Program Files/Python38/python.exe" e:/python/python/python_all_by_me/文本处理/分割字符.py
-----------------------------
[['11', '12', '13\n'], ['21', '22', '23\n'], ['31', '32', '33\n'], ['41', '42', '43\n'], ['one', 'two', 'three']]
['11', '12', '13\n']
=============================
[['11', '12', '13'], ['21', '22', '23'], ['31', '32', '33'], ['41', '42', '43'], ['one', 'two', 'three']]
['11', '12', '13']
----------------------------
['11', '12', '13']
-------------====================分割线====================-------------
硬币,懂?