You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
13 lines
170 B
Python
13 lines
170 B
Python
|
|
# Test slicing of Unicode strings
|
||
|
|
|
||
|
|
s = "Привет"
|
||
|
|
|
||
|
|
print(s[:])
|
||
|
|
print(s[2:])
|
||
|
|
print(s[:5])
|
||
|
|
print(s[2:5])
|
||
|
|
print(s[2:5:1])
|
||
|
|
print(s[2:10])
|
||
|
|
print(s[-3:10])
|
||
|
|
print(s[-4:10])
|