python字符串的运算有哪些

1,链接符号 +

2,判断字符串是否在某个字符串中 ‘s’ in ‘this’ 返回bool

3,字符串索引 a="this a my" a[0],a[-1],a[1:4],a[1:],a[1:4:2]

 

相关文章:

  • 2021-08-12
  • 2021-11-09
  • 2021-04-06
  • 2022-12-23
  • 2022-12-23
  • 1970-01-01
  • 2021-11-18
  • 2021-08-06
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-12
  • 2022-12-23
  • 2021-07-28
相关资源
相似解决方案