简体   繁体   中英

Strings are being printing inside quotes

Example:

>>> print "How do you do"

It prints as

'How do you do'

or

>>> x = "How do you do"
>>> print x
'How do you do'

I have just started learning python. All my print commands are coming in this way. What do I do?

>>> x = "How do you do"
>>> x
'How do you do' # representation of x
>>> print x
How do you do # printed version of x

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM