回答編集履歴
2
Update
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
def judge():
|
6
6
|
txt2 = textbox_input.get('1.0', 'end-1c') # remove newline
|
7
|
-
end = ''.join([[t
|
7
|
+
end = ''.join([[t2, '■'][t1 == t2] for t1, t2 in zip(txt1, txt2)])
|
8
|
-
end += txt
|
8
|
+
end += txt2[len(end):]
|
9
9
|
print(end)
|
10
10
|
```
|
1
Update
test
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
def judge():
|
6
6
|
txt2 = textbox_input.get('1.0', 'end-1c') # remove newline
|
7
|
-
end =
|
7
|
+
end = ''.join([[t1, '■'][t1 == t2] for t1, t2 in zip(txt1, txt2)])
|
8
|
+
end += txt1[len(end):]
|
8
9
|
print(end)
|
9
10
|
```
|