美文网首页python
Judge info is True or not?

Judge info is True or not?

作者: Python_Camp | 来源:发表于2020-07-28 11:06 被阅读0次
    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