# int could accept parameters in bool type.
int(True) # result is 1 int(False) # result is 0

 

reprlib.repr 这个实用函数用于生成大型数据结构的简略字符串表示形式。

posted on 2017-10-20 10:20  Go_Forward  阅读(140)  评论(0编辑  收藏  举报