1 回答

Nelson_Zhao
TA贡献21条经验 获得超4个赞
r代表匹配原始字符,在通配符中'\'需要进行转义,如果不加r,默认'\'为转义字符,此时还想达到原语句的效果,就需要写成
print os.path.isdir('C:\\Windows')
添加回答
举报
0/150
提交
取消