The Differences in The Way Coding Between Python2 and Python3.
When input strings like 'this is a test'.In Python2:# basic
s = 'this is a test'
t = u'this is a test'
print type(s) # string
print type(t) # Unicode
# transform
print type(s.decode('utf-8'))...
原创
2018-07-09 18:57:33 ·
168 阅读 ·
0 评论