看板 Python 關於我們 聯絡資訊
file1: file2: asia 1.1 asia 1.2 usa 2.1 usa 2.2 asia 1.3 eup 3.1 usa 2.3 eup 3.2 . . . . . . 各位版友好, 假設File1裡有多筆資料, 請問有沒有辦法可以將File1的資料轉換如File2呢? 麻煩各位了... -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 220.137.113.177 ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1429158595.A.CD4.html
tiefblau: dict 04/16 12:31
您好,我有在研究dict的方法,但是不知道該怎麼分配... 所以一邊找資料一邊發問, 謝謝您! ※ 編輯: Dong0129 (220.137.113.177), 04/16/2015 12:39:42
walelile: 用dict建表格查該字串是第幾個不重複字串&出現第幾次 04/16 13:06
您好,謝謝您的建議,因為對Python的語句還不太熟悉... 請問有範例程式可以參考嗎? ※ 編輯: Dong0129 (220.137.113.177), 04/16/2015 14:18:05