str转换成int

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

 

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