每天一个小Error
程序员文章站
2022-04-27 20:25:48
...
Strip()
sText = '\'Programming\'itself is the best way to learn programming.\n\t-Nobody'
print(sText.strip())
sText = '\'Programming\'itself is the best way to learn programming.\n\t-Nobody\tand end here.'
print(sText.strip())
输出
'Programming'itself is the best way to learn programming.
-Nobody
'Programming'itself is the best way to learn programming.
-Nobody and end here.
上一篇: 每天一个小skill