SoFunction
Updated on 2024-11-13

Python String and Number Output Methods

As shown below:

x = 3
print(x+"nihao")

This will give you an error.

x = 3
print(x,"nihao")

This will not report an error, uh, a little knowledge found today, record it

This Python string and number output method above is all I have to share with you, I hope it can give you a reference, and I hope you will support me more.