主页
Python
Python String expandtabs() 方法
demo_ref_string_expandtabs2
运行 ❯
×
更改方向
保存代码
更改主题
txt = "H\te\tl\tl\to" print(txt) print(txt.expandtabs()) print(txt.expandtabs(2)) print(txt.expandtabs(4)) print(txt.expandtabs(10))
H e l l o
H e l l o
H e l l o
H e l l o
H e l l o