原文:UnicodeEncodeError: 'ascii' codec can't encode characters in position問題的解決辦法

今天剛開始用ulipad寫python代碼 代碼如下 usr bin env python coding utf a int raw input 請輸入一個數: if a lt : print u d小於 aelif a : print u d等於 aelse: print u d大於 a 運行時發現中問總是亂碼,於是百度發現ulipad識別的編碼為gbk,於是我將coding里的utf 改為gb ...

2015-10-27 13:59 1 10469 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM