I passed python Read excel The message inside , Want to add all the information to a list ( Add the small list to the large list ), You use a loop , But the last big list prints out addresses , It's not information .
import xlrdList=[]xx=xlrd.open_workbook(r"S:\Data\moveT.xlsx")xs=xx.sheet_by_name('Sheet1')for i in range(50): k=xs.row_values(i) print(k) List.append(xs)print(List)
Attempted cast
Put each group of information in a list , Then put each list in ige Large list
because xs It's an object , You put it append To List That's what this list prints out .
Should be written as List.append(k)
I hope I can help you :D