作者查詢 / octantis

總覽項目: 發文 | 留言 | 暱稱
作者 octantis 在 PTT [ Python ] 看板的留言(推文), 共92則
限定看板:Python
首頁
上一頁
1
2
3
下一頁
尾頁
[問題] python 將爬出來的資料匯出至檔案
[ Python ]6 留言, 推噓總分: +1
作者: brightsu - 發表於 2016/03/08 11:18(9年前)
1Foctantis: 可以排一下版嗎...看的眼花瞭亂03/08 15:29
2Foctantis: 你順序搞錯了, open放在for裡就會一直重覆開, 然後一直03/08 16:53
3Foctantis: 蓋掉你已存進去的資料, 除非你用a+03/08 16:54
4Foctantis: http://pastie.org/1075179803/08 16:55
[問題] .py路徑問題
[ Python ]11 留言, 推噓總分: +2
作者: aaccbb - 發表於 2016/03/07 10:33(9年前)
2Foctantis: 使用sys.path找你放的資料夾路徑是否有在該list裡面,如03/07 11:45
3Foctantis: 果沒有則使用sys.path.insert(0, 路徑)加入03/07 11:45
4Foctantis: idle預設路徑會在python安裝資料夾裡,如果你檔案放在其03/07 11:47
5Foctantis: 他資料夾就得在報行時打上路徑或加入sys.path03/07 11:48
6Foctantis: 執03/07 11:48
7Foctantis: 不過找不到檔案應該不會出現invalid syntax,你可能程式03/07 11:53
8Foctantis: 內容有寫錯,自己再檢查一下03/07 11:53
[問題] 關於override的繼承問題
[ Python ]10 留言, 推噓總分: +1
作者: octantis - 發表於 2016/02/08 21:47(10年前)
7Foctantis: 我再去研讀一下duck-typing的相關資料02/09 02:24
[問題] 關於字典以及序列的排序問題
[ Python ]12 留言, 推噓總分: +6
作者: allan5411 - 發表於 2016/01/27 19:01(10年前)
6Foctantis: 你有用到字典,書上應該有提醒你dict裡面是沒順序的01/28 14:55
7Foctantis: 除非將key抓出來排,或使用OrderedDict才可以依序列出01/28 14:56
8Foctantis: 2.要分別抓key及value在迴圈就可以做了01/28 15:15
9Foctantis: for k, v in student.items() 不用另設個si01/28 15:17
10Foctantis: 要做出格式需要字串格式化 '%-10s%-10s' % (k, v)01/28 15:18
11Foctantis: 如果你要依名稱排 for k, v in sorted(student.items())01/28 15:26
[問題] 請問如何產生N個名稱
[ Python ]7 留言, 推噓總分: +3
作者: lefan - 發表於 2016/01/20 11:11(10年前)
3Foctantis: 推樓上01/20 12:00
[問題]書籍推薦
[ Python ]21 留言, 推噓總分: +7
作者: bbonline229 - 發表於 2015/09/24 01:24(10年前)
4Foctantis: 葉難最近的新書很推 我覺得是目前入門最好的中文書09/25 10:44
首頁
上一頁
1
2
3
下一頁
尾頁