易百教程

77、以下代码输出结果是什么?

str = 'Learn Python!'
print(str * 2)

它会重复字符串两次。所以输出结果应该为:

Learn Python!Learn Python!