📜  python 裁剪字符串 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:18.393000             🧑  作者: Mango

代码示例1
text = "abc"
truncated_text = text[0:2]

print(truncated_text)
# Output
ab