首页
Python
Java
IOS
Andorid
NodeJS
JavaScript
HTML5
【
2017-12-15python全栈9期第二天第三节之作业讲解用户三次登陆
】的更多相关文章
2017-12-15python全栈9期第二天第三节之作业讲解用户三次登陆
#!/user/bin/python# -*- coding:utf-8 -*-i = 0while i < 3: username = input('请输入账号:') password = int(input('请输入密码:')) if username == 'zd' and password == 1 : print('登录成功') else: print('登录失败请重新输入') i += 1…
2017-12-15python全栈9期第二天第三节之使用while循环输出1到100的奇数,
#!/user/bin/python# -*- coding:utf-8 -*-count = 1while count <101: if count % 2 == 1: print(count) count += 1…
2017-12-15python全栈9期第二天第三节之使用while循环输出0到10不包含7
#!/user/bin/python# -*- coding:utf-8 -*-count = 0while count < 10: count += 1 if count == 7 : continue print(count)…
2017-12-15python全栈9期第二天第三节之使用while循环输出0到10
#!/user/bin/python# -*- coding:utf-8 -*-count = 0while count < 10: count += 1 print(count)…
2017-12-15python全栈9期第二天第七节之练习题
#!/user/bin/python# -*- coding:utf-8 -*-print(6 or 2 > 1)print(3 or 2 >1 )print(0 or 5 <4)print(5 <4 or 3)print(2 > 1 or 6)print(3 and 2 >1 )print(0 and 3 > 1)print(2 > 1 and 3)print(3 >1 and 0)…
2017-12-15python全栈9期第二天第七节之布尔值转数字
#!/user/bin/python# -*- coding:utf-8 -*-print(int(True))print(int(False))…
2017-12-15python全栈9期第二天第七节之数字转换成布尔值
#!/user/bin/python# -*- coding:utf-8 -*-print(bool(2))…
2017-12-15python全栈9期第二天第七节之x or y ,x 为 非 0时,则返回x
#!/user/bin/python# -*- coding:utf-8 -*-# x or y ,x 为 非 0时,则返回xprint(1 or 2)print(3 or 2)print(0 or 100)…
2017-12-15python全栈9期第二天第七节之运算符
#!/user/bin/python# -*- coding:utf-8 -*-print(3>4 or 4<3 and 1==1)print(1<2 and 3 <4 or 1 > 2)…
2017-12-15python全栈9期第二天第七节之整除
#!/user/bin/python# -*- coding:utf-8 -*-a = 10b = 20print(a // b)print(b // a)…