Python3 string
A string is an ordered sequence of characters
How to represent a string:
In non-comments, all parts enclosed in quotation marks are strings;
' single quote ” double quote ''' triple single quote """ triple double quote
Representation method of empty string:
‘ ’ 、 “ ” 、 ''' ''' 、 “”“ ”“”
The boolean value (bool) of an empty string is False.
>>> x = '' >>> bool(x) False >>> x = ' ' >>> bool(x) True >>>