str = 'i love you' str.title() #'I Love You'
str.upper() #'I LOVE YOU'
str.lower() #'i love you'
str = str1 + str2
example = ' python '
example.rstrip() #' python'
example.lstrip() #'python '
example.strip() #'python'
上一篇 树莓派26/100 - Pico控制RGB三色灯
下一篇 Python入门100例(四)
版权所有 ©2023-2025 051e.com
ICP备案号:京ICP备12030808号