看板
[ Python ]
討論串[問題] 輸出中文text檔案
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
這是在做什麼@@?what does c do?python的str不是這樣用的:. >>>help(str). Help on class str in module __builtin__:. class str(basestring). | str(object) -> string. |.
(還有281個字)
內容預覽:
我不知道你要做什麼,但是你的程式中有許多不恰當的做法. 我的方法. input_filename = 'address.txt'. with open(input_filename, 'r') as input_file:. with open('check.txt', 'w') as output
(還有285個字)
內容預覽:
最近開始接觸python(2.7). 嘗試用python讀入一個txt檔. 內容大致如下:. 1,台北市松山區. 2,台北市文山區. 3.高雄市三民區. ............................... 我要使用split(',')將數字、和地區分開進行一些處理後. 再輸出儲存至另一個
(還有580個字)
首頁
上一頁
1
下一頁
尾頁