Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/String-length/Python/string-length-5.py
Normal file
8
Task/String-length/Python/string-length-5.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
print len('ascii')
|
||||
# 5
|
||||
print len(u'\u05d0') # the letter Alef as unicode literal
|
||||
# 1
|
||||
print len('\xd7\x90'.decode('utf-8')) # Same encoded as utf-8 string
|
||||
# 1
|
||||
print hex(sys.maxunicode), len(unichr(0x1F4A9))
|
||||
# ('0x10ffff', 1)
|
||||
Loading…
Add table
Add a link
Reference in a new issue