搜索内容

包含标签:or 的文章
  • Python-and or技巧

    a = "heaven" b = "hell" c = True and a or b print c d = False and a or b print d 输出: heaven hell 结果很奇怪是不是? 表达式从左往右运算,1和……
    yfeer Python 2017年11月15日