Python learns a series of print () functions and variables

Time:2021-9-14

IPrint() function
The main function of the print() function is to print the content
The print() function is used in the following ways:
Without quotation marks

>>> print(520)
520
>>> 

With single quotation marks

>>> print('Hello word!!!')
Hello word!!!
>>> 

With double quotes

>>> print("Hello word!!!")
Hello word!!!
>>> 

With three quotation marks

>>>Print ('' 'I'd like to stay in Mrs. Tang's bathhouse for two years,
In the first year, I burned boiler water with my boiler grandfather in the boiler room,
Will become a pig in this world.
''')
I'd like to work in Mrs. Tang's bathhouse for two years,
In the first year, I burned boiler water with my boiler grandfather in the boiler room,
Will become a pig in this world.

>>>

Escape character

  1. Variables and Assignment