Home>Article>Backend Development> What does str in python mean?
#What does str in python mean?
The str() function in python converts objects into a form suitable for human reading.
The following is the syntax of the str() method:
class str(object='')
Parameters
object -- object.
Return value
The following shows an example of using the str() method:
>>>s = 'RUNOOB' >>> str(s) 'RUNOOB' >>> dict = {'runoob': 'runoob.com', 'google': 'google.com'}; >>> str(dict) "{'google': 'google.com', 'runoob': 'runoob.com'}" >>>
Related recommendations: "Python Tutorial》
The above is the detailed content of What does str in python mean?. For more information, please follow other related articles on the PHP Chinese website!