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