看板 [ Python ]
討論串[問題] 請問一下讀檔的問題
共 8 篇文章
首頁
上一頁
1
2
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者isong (船沒開啊...)時間18年前 (2007/03/04 16:01), 編輯資訊
0
0
0
內容預覽:
不好意思~~~模仿你的語言測試了一下. 再請教一些問題. **. import re. result = {}. pattern = re.compile(r'(\w+)'). f = open('text.txt', 'r'). for line in f:. for word in patter
(還有283個字)

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者wawawa (哇哇哇○( ̄﹏ ̄)○)時間18年前 (2007/03/04 01:17), 編輯資訊
0
0
0
內容預覽:
不只9個吧?你少了一個 the. --. #!/usr/bin/python. import re. result = {}. pattern = re.compile(r'(\w+)'). f = open('text.txt', 'r'). for line in f:. for word in
(還有70個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者isong (船沒開啊...)時間18年前 (2007/03/03 23:47), 編輯資訊
0
0
0
內容預覽:
最近在練習讀檔的問題. 假如我有一個檔 "text.txt". 內容是:. on one of the ossuaries -- "Mariamene" -- offers.. that the tomb is That of. 我寫了一個程式. --------. import string. i
(還有427個字)
首頁
上一頁
1
2
下一頁
尾頁