lzh = '00000100100100'
lzh_int = [int(i) for i in list(lzh)]
print('lzh_int:',lzh_int,sum(lzh_int))
#count money
print('count how many 1 in lzh:',lzh.count('1'))
print(list(lzh))
print(sum([1,2,3]))
print(lzh.count('1') == 1)
lzh = '00000100100100'
lzh_int = [int(i) for i in list(lzh)]
print('lzh_int:',lzh_int,sum(lzh_int))
#count money
print('count how many 1 in lzh:',lzh.count('1'))
print(list(lzh))
print(sum([1,2,3]))
print(lzh.count('1') == 1)
本文标题:Judge info is True or not?
本文链接:https://www.haomeiwen.com/subject/wrffrktx.html
网友评论