python关于while循环,运算符,格式化输出及编码问题
二.运算符 and,or,not
and:并且的意思,当作有俩端同时为真运算的结果才能为真
or:或者的意思有一个为真,结果就是真
not:非真即假,非假即真
运算顺序:最先算的永远是括号--not--and--or
x or y 如果x 为0 则返回y,否则返回x
and 和 or 相反
四:while 循环
posted on 2018-09-04 21:56 Informatik 阅读(131) 评论(0) 编辑 收藏 举报