Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
[(] ブラケットでファイルを開くとエラーが発生します。助けてください :)
usedbeforefile = open&&(&&'c:\\Documents and Settings\Adam\Desktop\NewProgram\Resources\Alfred\ub4.txt')
編集: ありがとう、Ashwini Chaudhary
(ブラケットの周りに「&&」が表示されている場合、それは私のエラーがどこにあったかを示しているだけです:D)
Python はパスを移植可能に解釈しようとするため、Unix と Windows でもスラッシュを使用できます。
usedbeforefile = open('c:/Documents and Settings/Adam/Desktop/NewProgram/Resources/Alfred/ub4.txt')