python之文件路径截取 & endswith() 文件路径截取: 1 >>> import os 2 >>> path = ‘/etc/singfor/passwd/sunny/test.log’ 3 >&g … 继续阅读 python之文件路径截取 & endswith()