发布时间:2019-09-10 08:47:24编辑:auto阅读(3944)
import os
path='file.txt'
file=os.path.splitext(path)
filename,type=file
print(filename)
print(type)
点击打开链接 Python资料汇总
上一篇: 【Python】python之π的计算
下一篇: 浅谈simhash及其python实现
49979
49233
39893
36933
31337
28173
27127
21928
21860
20201
167°
200°
191°
343°
362°
978°
1779°
1679°
1360°
2761°