看板 [ Python ]
討論串[問題] 比較字串問題?
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者shawkid (EDGE)時間17年前 (2008/08/14 19:32), 編輯資訊
1
0
0
內容預覽:
各位大大. 想請教一各字串問題. 檔案 a.txt 內容. main.php. s1.php. s2.php. a1.php. a2.php. .. .. .. 檔案 b.txt 內容. 2008/8/14 1700 main.php. 2008/8/14 1800 s1.php. 2008/8/1
(還有43個字)

推噓1(1推 0噓 1→)留言2則,0人參與, 最新作者yungyuc (酷狗喵千代)時間17年前 (2008/08/14 21:42), 編輯資訊
0
0
0
內容預覽:
雖然我知道這是不對的. 但既然在休息中,就直接給你答案 :p. $ python -c "print [line.split()[-1].strip() for line in open('b.txt') if. line.split()[-1].strip() not in [item.strip
首頁
上一頁
1
下一頁
尾頁