Judge info is True or not?
2020-07-28 本文已影响0人
Python_Camp
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)