在涉及到文件地址的处理时,都用os.path.join,至少不出错。后面补充为什么。 顺便说一下: str1.split( ‘to_be_matched’ ) 'to_be_matched’这里必须是一个字符串,不能是‘a’+‘b’这种