python 获取文件名后缀

extention_name = input("输入文件名(可拖动):").split(".")[-1]
posted @ 2022-05-11 18:25  cliter  阅读(128)  评论(0)    收藏  举报