iD8DBQE / LENWd90bcYOAWPYRAtWhAJ4ozTD1G3xLzVkeuJvPDJTsLbkcBQ CfX4E0 YR / + zWSPDwX0uUf8y0QkxJs = = sGTb ----- END PGP SIGNATURE ----- - Jim Richardson http://www.eskimo.com/~warlock Linux,因为最终,你的成长足以让人信任用fork()Are you trying to match any to any strings? or only a pair as above?-----BEGIN PGP SIGNATURE-----Version: GnuPG v1.2.2 (GNU/Linux)iD8DBQE/LENWd90bcYOAWPYRAtWhAJ4ozTD1G3xLzVkeuJvPDJTsLbkcBQ CfX4E0YR/+zWSPDwX0uUf8y0QkxJs==sGTb-----END PGP SIGNATURE-------Jim Richardson http://www.eskimo.com/~warlockLinux, because eventually, you grow up enough to be trusted with a fork() 一次一对,我只想要前缀为N / B 的前N个字符两个字符串。 os.path.commonprefix工作得很好。谢谢 的帮助。 RaviJust a pair at a time, and I only want the first N characters that arecommon to both strings. The os.path.commonprefix works nicely. Thanksfor your help.Ravi 这篇关于匹配两个字符串的开头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 1403页,肝出来的.. 09-06 07:04