万恶的字符串

a = 'htttp://www.baidu.com/meinv.exe'
print(a.endswith('exe'))
结果是True

posted @ 2024-10-06 21:30  神仙不在  阅读(8)  评论(0)    收藏  举报