2.1

-- coding: utf-8 --

"""
Created on Sun Oct 13 11:32:13 2024

@author: 26606
"""

str1="Hellow World!"
print(str1)
print(str1[0:-1])
print(str1[-1])
print(str1[2:5])
print(str1[2:])
print(str1*2)

posted @ 2024-10-14 09:51  qi11  阅读(4)  评论(0编辑  收藏  举报