Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 557 Bytes

15.md

File metadata and controls

22 lines (16 loc) · 557 Bytes
@author jackzhenguo
@desc 
@date 2019/2/15

15 任意对象转为字符串  

In [14]: i = 100                                                                

In [15]: str(i)                                                                 
Out[15]: '100'

In [16]: str([])                                                                
Out[16]: '[]'

In [17]: str(tuple())                                                           
Out[17]: '()'
[上一个例子](14.md) [下一个例子](16.md)