Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
2 つの 10,000 バイトの文字列を比較しようとしていますが、時間がかかります.比較する最速の方法はありますか?
それを閉じてください、問題は比較にありません..私はちょうどそれに気づきました..
Python で 2 つの文字列を比較する最速の方法は常に次のとおりです。
if s1 == s2: print "strings are equal"
他の制約がある場合は、それらを明示的に記述する必要があります。