0
new_list = eval(my_list[0]) # my_list contains dictionaries
def get_next_file():
for key, value in new_list.iteritems():
yield value
file = get_next_file
book = xlrd.open_workbook(file_contents=file)
for sheet in book.sheet_names():
print sheet
我想從字典中取出一個字符串並將其轉換爲xls文件,以便可以進行處理。這是一個我使用str(list(xls_file))的xls文件,以便它可以保存在我的數據庫中。python將字符串轉換爲xls文檔進行處理
有什麼想法?
保存的字符串會以十六進制形式打印出來,其中包含一些單詞。