第8章 正則表達式查找文件內容

#第八章:編寫一個程序, 打開文件夾中全部的.txt 文件,查找匹配用戶提供的正則表達式的全部行。結果應該打印到屏幕上。 import os, re path = 'E:\\04.AutomationProject\\PracticePython' folder = os.path.exists(path) if folder: print("目錄正確!") else: print
相關文章
相關標籤/搜索