出现错误原因:
列表中的元素位于了同一列中,数据读取时出现了错误,例如:
a=[
["xcp",23,30000,"成都"]
["lmx",23,10000,"成都"]
["wan",23,20000,"北京"]
]
简单解决办法:
将列表中的数据用逗号隔开。修改如下:
a=[
["xcp",23,30000,"成都"],
["lmx",23,10000,"成都"],
["wan",23,20000,"北京"],
]
出现错误原因:
列表中的元素位于了同一列中,数据读取时出现了错误,例如:
a=[
["xcp",23,30000,"成都"]
["lmx",23,10000,"成都"]
["wan",23,20000,"北京"]
]
简单解决办法:
将列表中的数据用逗号隔开。修改如下:
a=[
["xcp",23,30000,"成都"],
["lmx",23,10000,"成都"],
["wan",23,20000,"北京"],
]