#,+,*
# 1,字符串+:连接符
print('hello'+'world')
# 2,字符串*:重复操作符号
print('1'*100)
# 3,检查字符串:in 和 not in
my_str='hellowworld'
print('hello'in my_str)
print('hello' not in my_str)
字符串运算符的使用
最新推荐文章于 2024-08-09 00:05:38 发布
#,+,*
# 1,字符串+:连接符
print('hello'+'world')
# 2,字符串*:重复操作符号
print('1'*100)
# 3,检查字符串:in 和 not in
my_str='hellowworld'
print('hello'in my_str)
print('hello' not in my_str)