int('x', base)中的base参数

>>> int('12', 16)

16表示'12'就是16进制数,int()要将这个16进制数转化成10进制。

posted on 2015-09-18 19:54  sudo987  阅读(424)  评论(0编辑  收藏  举报

导航