1.举例说明:(引号)
n1 = "alex"
n2 = 'sb'
n3 = '''en'''
n4 = """shiya"""
2.字符串的运算:
加法:
>>> n1 = "alex" >>> n2 = "sb" >>> n1+n2 'alexsb'
乘法:
>>> n1 = "mao" >>> n1*10 'maomaomaomaomaomaomaomaomaomao'
1.举例说明:(引号)
n1 = "alex"
n2 = 'sb'
n3 = '''en'''
n4 = """shiya"""
2.字符串的运算:
加法:
>>> n1 = "alex" >>> n2 = "sb" >>> n1+n2 'alexsb'
乘法:
>>> n1 = "mao" >>> n1*10 'maomaomaomaomaomaomaomaomaomao'