python断言

 

 


obj = 'roger'

assert type(obj) is int
posted @ 2018-05-24 17:40  强巴  阅读(87)  评论(0编辑  收藏  举报