繁体   English   中英

有没有办法将repl.it与本地驱动器中的数据连接?

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM