您好我這裏有一個列表: list_1.txt Alpha
Bravo
Charlie
和文件與以下文件名和內容的目錄: Alpha_123。日誌 This is a sample line in the file
error_log "This is error1 in file"
This is another sample line in the file
This is a
我嘗試從我的日誌文件中獲取一個數字。這個數字是在每個「當前商店使用率」之後。我怎樣才能做到這一點?我可以使用re模塊嗎?從日誌文件 線 2017-05-30 12:01:03,168 | WARN | Store limit is 102400 mb (current store usage is 0 mb). The data directory: /opt/apache-activemq-5.
我開始對某些csv文檔進行一些文本分析。然而,我的csv文檔有幾個句子,幾乎沒有什麼詞讓我感興趣,所以我想創建一個python代碼來分析這個csv文檔,只留下包含5個以上單詞的句子供我分析,但是我不知道在哪裏開始做我的代碼,並希望得到一些幫助。 例如: 輸入文檔 enter image description here 輸出文檔 enter image description here