热门

最新

红包

立Flag

投票

同城

我的

发布
jnee520
小客2020
5 年前
truejnee520

format='.mp4','.mkv'
str='example.mp4'
if str.endswith(format)
print('this is a vedio file')
如何直接提取当前匹配的后缀呢?除了读取str外有其他办法不,有没有能直接知道format的方法

你问我答
CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
Hi,don't get mad about it . i'm pulling your leg .
立即登录