摘要:
有一个数字字符的列表: numbers = ['1', '5', '10', '8'] 想要把每个元素转换为数字: numbers = [1, 5, 10, 8] new_numbers = []; for n in numbers: new_numbers.append(int(n)); numb 阅读全文
摘要:
import pandas as pd df = pd.read_excel('./xx.xls') print(df.columns) 阅读全文
摘要:
循环方法: import os def allfile(basepath): for item in os.path.listdir(basepath): path = os.path.join(basepath, item) if os.path.isfile(path): print item 阅读全文