簡體   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