質問編集履歴
1
read → readline どっちでもいいけど
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,7 +34,7 @@
|
|
34
34
|
|
35
35
|
ser.write(str.encode('A'))
|
36
36
|
|
37
|
-
data = ser.read()
|
37
|
+
data = ser.readline()
|
38
38
|
|
39
39
|
print(data)
|
40
40
|
|