摘要: # coding=utf-8 #这是自己想的方法 def addBinary(a, b): """ :type a: str :type b: str :rtype: str 将二进制字符串转为十进制,方法是按位分开乘以2的l-i-1幂 然后转为二进制字符串 """ num1 = 0 num2 = 0 l1 = l... 阅读全文
posted @ 2017-12-21 10:35 stAr_1 阅读(175) 评论(0) 推荐(0) 编辑