print("I love this book ,it's name is ")
print('平凡的世界')
此时输出为:
I love this book ,it's name is
平凡的世界
在末尾加入:end=' ' 时:
print("I love this book ,it's name is ", end='')
print('平凡的世界')
I love this book ,it's name is 平凡的世界
print("I love this book ,it's name is ")
print('平凡的世界')
此时输出为:
I love this book ,it's name is
平凡的世界
在末尾加入:end=' ' 时:
print("I love this book ,it's name is ", end='')
print('平凡的世界')
I love this book ,it's name is 平凡的世界