使用FileInput進行文字替換 - jenhaoyang/backend_blog GitHub Wiki 參考: https://stackoverflow.com/a/20593644 https://docs.python.org/3/library/fileinput.html https://www.geeksforgeeks.org/python-inplace-editing-using-fileinput/