micropython/tests/basics/string_center.py

14 wiersze
230 B
Python

try:
str.center
except:
print("SKIP")
raise SystemExit
print("foo".center(0))
print("foo".center(1))
print("foo".center(3))
print("foo".center(4))
print("foo".center(5))
print("foo".center(6))
print("foo".center(20))