Time for an 2014 update…
This commit is contained in:
parent
372c577f83
commit
09687c4926
2520 changed files with 34227 additions and 7318 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