micropython: add micropython component
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
# 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])
|
Reference in New Issue
Block a user