看板
[ Python ]
討論串[問題] 一個本文處理的練習
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
我猜你用的python版本應該是3.x吧?. 忘記那一版開始 print已經被改成函式print()了. 改成這樣應該就可以了. total = 0. print("%10s %10s %10s " % ('Names', 'Shares', 'Price')). print("----------
(還有159個字)
內容預覽:
在網路上的blog看到一個練習. 要處理這份文件:http://www.givegoodweb.com/examples/portfolio.txt. 程式碼. total = 0. print "%10s %10s %10s " % ('Names', 'Shares', 'Price'). pr
(還有427個字)
首頁
上一頁
1
下一頁
尾頁