摘要:        
此次用了while--else循环,如果while中不是从break中退出,则转到else中执行语句。 %s占位符的使用:print(“%s” % (...)) name = 'hans' password = "123456" i = 0 while i < 3: namer = input("请    阅读全文
posted @ 2021-05-29 17:01
hans_hao
阅读(73)
评论(0)
推荐(0)
        
            
        
        
摘要:        
逻辑运算优先级: print(0 or 3) print(0 or 0) print(3 or 0) print(9 or 8) print(1 and 2) print(2 and 1) print(0 and 1) print(1 and 0) 显示结果为: 1 3 2 0 3 3 4 9 5     阅读全文
posted @ 2021-05-29 15:36
hans_hao
阅读(247)
评论(0)
推荐(0)
        
 
                    
                     
                    
                 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号