python 自帶比較相似度的模塊,difflib。比較兩個字符串的模塊是difflib.SequenceMatcher,使用起來很簡單: import difflibdef string_similar(s1, ...
確定! 回上一頁