Python字符串连接

我们可以对字符串进行截取并与其他字符串进行连接,如下实例:

var1 = 'Hello World!'

print "输出 :- ", var1[:6] + 'Runoob!'