質問編集履歴
3
ディレクトリ構成修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
|-code
|
12
12
|
|
13
|
-
|
13
|
+
| ┗main.py
|
14
14
|
|
15
15
|
|
16
16
|
|
2
ディレクトリ構成修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,11 +6,13 @@
|
|
6
6
|
|
7
7
|
test
|
8
8
|
|
9
|
+
|-tt.txt
|
10
|
+
|
9
11
|
|-code
|
10
12
|
|
11
|
-
|
13
|
+
┗main.py
|
12
14
|
|
13
|
-
|
15
|
+
|
14
16
|
|
15
17
|
|
16
18
|
|
1
コード追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -52,6 +52,20 @@
|
|
52
52
|
|
53
53
|
|
54
54
|
|
55
|
+
### 相対パスで書いた場合
|
56
|
+
|
57
|
+
下記実行すると、No such file or directory: '../tt.txt' と表示されます。
|
58
|
+
|
59
|
+
```python
|
60
|
+
|
61
|
+
with open('../tt.txt', 'r') as f:
|
62
|
+
|
63
|
+
print(f.read())
|
64
|
+
|
65
|
+
```
|
66
|
+
|
67
|
+
|
68
|
+
|
55
69
|
### 補足情報(FW/ツールのバージョンなど)
|
56
70
|
|
57
71
|
|