Loading

摘要: endswith()方法 利用文件名或路径名对文件后缀进行判断,例如对文件名后缀是否为.jpg的文件进行判断。 path = "file.jpg" bool = path.endswith(".jpg") print(bool) 输出即为判断的结果:True 阅读全文
posted @ 2022-01-10 15:09 _yhwu 阅读(4339) 评论(0) 推荐(0) 编辑