自动下载解压的python logging download os ,一份比较好的python下载解压代码
复制文件#copythefile"test.py"innowpathtothechildpathmytest/ifnotos.path.exists("mytest"):os.makedirs("mytest")copy2("test.py","mytest/")获取文件名url="home/cx/test.txt"filename=url.split('/')[-1]printfilename利