回答編集履歴
1
追記
test
CHANGED
@@ -1,10 +1,14 @@
|
|
1
1
|
```Python
|
2
2
|
|
3
|
-
s
|
3
|
+
def fnc(s):
|
4
4
|
|
5
|
-
s = ''.join(list(s))
|
5
|
+
s = ''.join(list(repr(s)))
|
6
6
|
|
7
|
-
|
7
|
+
return s
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
print(fnc('C:\foo\bar'))
|
8
12
|
|
9
13
|
# 'C:\foo\bar'
|
10
14
|
|