Discuss / Python / 打卡练习2

打卡练习2

Topic source

import os
path=os.getcwd()
list_all=os.listdir(path)
for file in list_all:
if 'txt' in file and os.path.isfile(file):
print(file)




  • 1

Reply