python帮助信息和常见强制转换

1.帮助信息

type():查看变量类型;

help()::查看方法帮助信息;

dir():查看变量属性;

 

2.常见变量强制转换

int():字符串转int

str():int转str

 

posted on 2017-10-24 10:14  阿文闲聊  阅读(114)  评论(0编辑  收藏  举报