python os.path.splitext()

# Split the file extension

可以把扩展名获取出来

猜你喜欢

转载自www.cnblogs.com/baxianhua/p/10214489.html