kopia lustrzana https://github.com/micropython/micropython-lib
9 wiersze
239 B
Python
9 wiersze
239 B
Python
![]() |
from os.path import *
|
||
|
|
||
|
assert split("") == ("", "")
|
||
|
assert split("path") == ("", "path")
|
||
|
assert split("/") == ("/", "")
|
||
|
assert split("/foo") == ("/", "foo")
|
||
|
assert split("/foo/") == ("/foo", "")
|
||
|
assert split("/foo/bar") == ("/foo", "bar")
|