Skip to content

Commit 8adf19d

Browse files
committed
* 测试编码问题
1 parent 96b2294 commit 8adf19d

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

test.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,20 @@ def test_monitor_pydk():
2020
ldkqueue = Queue(10)
2121
LDKREFRESHTIME = 30
2222
MonitorLDKThread(PyLdk(JadeLog), JadeLog, ldkqueue, LDKREFRESHTIME)
23+
24+
def test_print_a():
25+
a = b'\xe7\x9b\xb8\xe6\x9c\xba\xe5\xbc\x82\xe5\xb8\xb8'
26+
print(a.decode("utf-8"))
27+
28+
2329
if __name__ == '__main__':
24-
test_monitor_pydk()
30+
count = 0
31+
32+
33+
def increase_count(count):
34+
count += 1
35+
36+
37+
print(count) # 输出0
38+
increase_count(count)
39+
print(count)

0 commit comments

Comments
 (0)