[英]Is there a way to connect repl.it with data in local drive?
在repl.it上 ,我尝试调用我知道它存在的路径,但是它给了我一个错误。
码:
import os
print os.path.exists('C:\Users\')
错误:
SyntaxError: EOL while scanning string literal
exited with non-zero status
您需要转义反斜杠。 请参阅此处的文档。
import os
print os.path.exists('C:\\Users\\')
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.