可以使用pandas库中的read_csv()函数来读取txt文件并保存到一个名为"data"的变量中。例如: import pandas as pd data = pd.read_csv('filename.txt')