为什么行号11
的打印语句输出不显示版权图标?我需要进行哪些代码更改才能将图标打印在输出中?代码中还有其他显示该图标的打印语句。
# -*- coding: utf-8 -*-
from datetime import datetime
cy = datetime.now().year
print(cy)
s2 = "©2019 Gogo. All rights reserved"
print (s2)
EXP_RES = ['testservice@testhis.com',
'1-303-666-3278',
(u"©") + str(cy) + ' ' + "Tester. All rights reserved."]
print(EXP_RES)
print [x.encode('UTF8') for x in EXP_RES]
s1 = ("©")
print(s1)
实际结果:
©2019 Gogo. All rights reserved
['testservice@testhis.com', '1-303-666-3278', u'\xa92019 Tester. All rights reserved.']
['testservice@testhis.com', '1-303-666-3278', '\xc2\xa92019 Tester. All rights reserved.']
©
Expected Results:
©2019 Gogo. All rights reserved
['testservice@testhis.com', '1-303-666-3278', u'\xa92019 Tester. All rights reserved.']
['testservice@testhis.com', '1-303-666-3278', '©2019 Tester. All rights reserved.']
©