Pythonの文字列に特定の文字列が含まれているかどうか、その文字列が で終わるか、 で始まるかを判断します。

コード:

結果:

おすすめ

転載: blog.csdn.net/weixin_43934631/article/details/129241204