task9筆記

1、打開中文字符的文檔時,會出現亂碼,Python自帶的打開文件是否可以指定文字編碼?還是隻能用相關函數? 求講解。 2、編寫程序查找最長的單詞 輸入文檔: res/test.txt 題目說明: 「」" Input file test.txt Output file [‘general-purpose,’, ‘object-oriented,’] 「」" def longest_word(file
相關文章
相關標籤/搜索