python os.path.splitext()

# Split the file extension

可以把扩展名获取出来

原文地址:https://www.cnblogs.com/baxianhua/p/10214489.html