```
str1 = '\u63a8\u8350'
print(str1.encode('utf8').decode('unicode_escape'))
print(str1.encode('utf8'))
#print(s1.encode('utf8').decode('unicode_escape').encode('utf8'))
print(str1.encode('utf8').decode('unicode_escape').encode('utf8'))
str2 = '\\u63a8\u8350'
str2 = '\\u63a8\\u8350'
print(str2.encode('utf8').decode('unicode_escape'))
str3 = 'b\n'
str4 = 'b\\n'
str4 = "b\\n"
print('I\'m ok')
str5 = '\\ub2e4\\uc6b4\\ub85c\\ub4dc'
print(str2.encode('utf8').decode('unicode_escape'))
print(str5.encode('utf8').decode('unicode_escape'))
```
```
Python 3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> str1 = '\u63a8\u8350'
>>> print(str1.encode('utf8').decode('unicode_escape'))
æ¨è
>>> print(str1.encode('utf8'))
b'\xe6\x8e\xa8\xe8\x8d\x90'
>>> print(s1.encode('utf8').decode('unicode_escape').encode('utf8'))
Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
print(s1.encode('utf8').decode('unicode_escape').encode('utf8'))
NameError: name 's1' is not defined
>>> print(str1.encode('utf8').decode('unicode_escape').encode('utf8'))
b'\xc3\xa6\xc2\x8e\xc2\xa8\xc3\xa8\xc2\x8d\xc2\x90'
>>> str2 = '\\u63a8\u8350'
>>> str2 = '\\u63a8\\u8350'
>>> print(str2.encode('utf8').decode('unicode_escape'))
推荐
>>> str3 = 'b\n'
>>> str3
'b\n'
>>> str4 = 'b\\n'
>>> str4
'b\\n'
>>> str4 = "b\\n"
>>> str4
'b\\n'
>>> print('I\'m ok'
)
I'm ok
>>> print(str4)
b\n
>>> print(str3)
b
>>>
==================== RESTART: C:/910/9101.py ====================
æ¨è
>>>
==================== RESTART: C:/910/9101.py ====================
æ¨è
b'\xe6\x8e\xa8\xe8\x8d\x90'
Traceback (most recent call last):
File "C:/910/9101.py", line 4, in <module>
print(s1.encode('utf8').decode('unicode_escape').encode('utf8'))
NameError: name 's1' is not defined
>>>
==================== RESTART: C:/910/9101.py ====================
æ¨è
b'\xe6\x8e\xa8\xe8\x8d\x90'
b'\xc3\xa6\xc2\x8e\xc2\xa8\xc3\xa8\xc2\x8d\xc2\x90'
推荐
I'm ok
>>>
==================== RESTART: C:/910/9101.py ====================
æ¨è
b'\xe6\x8e\xa8\xe8\x8d\x90'
b'\xc3\xa6\xc2\x8e\xc2\xa8\xc3\xa8\xc2\x8d\xc2\x90'
推荐
I'm ok
>>>
==================== RESTART: C:/910/9101.py ====================
æ¨è
b'\xe6\x8e\xa8\xe8\x8d\x90'
b'\xc3\xa6\xc2\x8e\xc2\xa8\xc3\xa8\xc2\x8d\xc2\x90'
推荐
I m ok
>>>
==================== RESTART: C:/910/9101.py ====================
æ¨è
b'\xe6\x8e\xa8\xe8\x8d\x90'
b'\xc3\xa6\xc2\x8e\xc2\xa8\xc3\xa8\xc2\x8d\xc2\x90'
推荐
I 'm ok
>>>
==================== RESTART: C:/910/9101.py ====================
æ¨è
b'\xe6\x8e\xa8\xe8\x8d\x90'
b'\xc3\xa6\xc2\x8e\xc2\xa8\xc3\xa8\xc2\x8d\xc2\x90'
推荐
I'm ok
>>>
==================== RESTART: C:/910/9101.py ====================
æ¨è
b'\xe6\x8e\xa8\xe8\x8d\x90'
b'\xc3\xa6\xc2\x8e\xc2\xa8\xc3\xa8\xc2\x8d\xc2\x90'
推荐
I'm ok
\u63a8\u8350
>>>
==================== RESTART: C:/910/9101.py ====================
æ¨è
b'\xe6\x8e\xa8\xe8\x8d\x90'
b'\xc3\xa6\xc2\x8e\xc2\xa8\xc3\xa8\xc2\x8d\xc2\x90'
推荐
I'm ok
b'\\u63a8\\u8350'
>>>
==================== RESTART: C:/910/9101.py ====================
æ¨è
b'\xe6\x8e\xa8\xe8\x8d\x90'
b'\xc3\xa6\xc2\x8e\xc2\xa8\xc3\xa8\xc2\x8d\xc2\x90'
推荐
I'm ok
推荐
>>>
==================== RESTART: C:/910/9101.py ====================
æ¨è
b'\xe6\x8e\xa8\xe8\x8d\x90'
b'\xc3\xa6\xc2\x8e\xc2\xa8\xc3\xa8\xc2\x8d\xc2\x90'
推荐
I'm ok
推荐
다운로드
>>>
```
- py转exe
- py服务器
- py登录
- py查询
- 爬TB热卖1017
- 爬TB分类1015
- 爬BD文库1010
- 爬文库924
- json917
- decode912
- 转码910
- radians829
- turtle827
- 画叶子820
- 树干815
- Turtle, mainloop718
- sorted716
- random711
- turtle.colormode709
- abs704
- begin_fill702
- randint,random627
- isalpha625
- keyword620
- compile618
- judge613
- list1.copy611
- random.choice606
- format_randint604
- save_csv528
- jieba523
- wordcloud521
- wordcloud516
- jieba.lcut514
- counts503
- format423
- 花瓣418
- strftime416
- turtle.fillcolor411
- random.random409
- pensize404
- 花蕊328
- input327
- eval_float320
- open319
- while314
- JCR影响因子313
- _to_chinese4_312
- encoding306
- read305
- flask1029