回答編集履歴
2
val を num に変更
test
CHANGED
@@ -14,15 +14,15 @@
|
|
14
14
|
|
15
15
|
|
16
16
|
|
17
|
-
|
17
|
+
num1 = int(''.join([str(Lojban.index(str1[i:i+2])) for i in range(0, len(str1), 2)]))
|
18
18
|
|
19
|
-
|
19
|
+
num2 = int(''.join([str(Lojban.index(str2[i:i+2])) for i in range(0, len(str2), 2)]))
|
20
20
|
|
21
21
|
|
22
22
|
|
23
|
-
|
23
|
+
num3 = num1 + num2
|
24
24
|
|
25
|
-
str3 = ''.join([Lojban[int(c)] for c in str(
|
25
|
+
str3 = ''.join([Lojban[int(c)] for c in str(num3)])
|
26
26
|
|
27
27
|
print(str3)
|
28
28
|
|
1
質問を追加
test
CHANGED
@@ -27,3 +27,5 @@
|
|
27
27
|
print(str3)
|
28
28
|
|
29
29
|
```
|
30
|
+
|
31
|
+
このコードの疑問点はどこですか?
|