@@ -25,6 +25,8 @@ def test_unescape():
2525 # unicode编码后的汉字的解析
2626 str_xx = '加入到"我的书目选单"中'
2727 str_xx = '\xe5 \xbd \x93 \xe5 \x89 \x8d \xe5 \xb7 \xb2 \xe8 \xbe \xbe \xe5 \x88 \xb0 \xe6 \x8a \x93 \xe5 \x8f \x96 \xe9 \x85 \x8d \xe7 \xbd \xae \xe7 \x9a \x84 \xe6 \x9c \x80 \xe5 \xa4 \xa7 \xe9 \xa1 \xb5 \xe7 \xa0 \x81 '
28+ str_xx = '\xe9 \xaa \x8c \xe8 \xaf \x81 \xe7 \xa0 \x81 \xe8 \xbe \x93 \xe5 \x85 \xa5 \xe9 \x94 \x99 \xe8 \xaf \xaf , \xe8 \xaf \xb7 \xe9 \x87 \x8d \xe6 \x96 \xb0 \xe8 \xbe \x93 \xe5 \x85 \xa5 \xef \xbc \x81 '
29+ str_xx = '\xe6 \x9c \xaa \xe7 \x9f \xa5 \xe8 \xae \xbf \xe9 \x97 \xae \xe6 \x9d \xa5 \xe6 \xba \x90 '
2830 from HTMLParser import HTMLParser
2931 h = HTMLParser ()
3032 print h .unescape (str_xx )
@@ -76,10 +78,10 @@ def test():
7678
7779if __name__ == "__main__" :
7880 test ()
79- print system_to_decimal ('000000001b2025f6' , 16 )
80- print system_to_decimal ('0001000100010001' , 2 )
81- test_unescape ()
82- test_unicode ()
81+ # print system_to_decimal('000000001b2025f6', 16)
82+ # print system_to_decimal('0001000100010001', 2)
83+ # test_unescape()
84+ # test_unicode()
8385
8486
8587"""
0 commit comments