📅  最后修改于: 2022-03-11 14:48:23.960000             🧑  作者: Mango
import glob
ch_list=[]
file_list=glob.glob("*.py")
for file in file_list:
with open(file,'r') as f:
ch_list.append(f.read())
print(ch_list)