with open(file_name, "a", encoding="utf-8") as f:
TypeError: 'encoding' is an invalid keyword argument for this function
解决办法: