s1=”我喜欢”s2="Python"请基于Python计算s1+s2 s1*2 3*s2 s1*s2 "我"in s1 s1[0] s1[-3:-1] s1[∷-1] s2[∷2] s2[1∷2] s1>s2
时间: 2023-04-08 19:05:08 浏览: 352
FCM_S.rar_FCM-S2_fcm_s1_fcm_s算法原理_fcm—s1_part4gq
5星 · 资源好评率100%
s1 = "我喜欢"
s2 = "Python"
s1 + s2 = "我喜欢Python"
s1 * 2 = "我喜欢我喜欢"
3 * s2 = "PythonPythonPython"
s1 * s2 = TypeError: can't multiply sequence by non-int of type 'str'
"我" in s1 = True
s1[0] = "我"
s1[-3:-1] = "喜欢"
s1[:: -1] = "欢喜我"
s2[::2] = "Pto"
s2[1::2] = "yh"
s1 > s2 = False
阅读全文