loro/crates/loro-python/examples/main.py
2023-01-29 17:48:37 +08:00

6 lines
No EOL
126 B
Python

from pyloro import Loro, LoroText;
loro = Loro()
text = loro.get_text("text")
text.insert(loro, 0, "123")
print(text.value())