python TypeError: must be encoded string without NULL bytes, not str

前端 未结 3 1089
温柔的废话
温柔的废话 2021-01-12 04:08

Trying to get familiar with python\'s standard library and doing some mucking around with it on my Windows machine. Using python 2.7 I have the following little script whic

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-12 04:47

    turns out to be the single backslash problem. i thought os.path.normpath would format the path as required by the os.

提交回复
热议问题