printer(x or y) x为非零,则返回x,否则返回y
printer(x and y) x为非零,则返回y,x为零,则返回x、
python自学之路-逻辑运算符
原文:https://www.cnblogs.com/wuchangblog/p/13311428.html