str转换成int

a='123'
print(type(a))
b=int(a)
print(type(b))

 

posted @ 2018-04-02 14:48  未来的技术  阅读(298)  评论(2编辑  收藏  举报