会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
斑竹ll队长
博客园
|
首页
|
新随笔
|
新文章
|
联系
|
订阅
|
管理
2018年7月4日
循环套循环
摘要: for i in range(10): print(" ",i) for j in range(10): print(j) if j>5: break
阅读全文
posted @ 2018-07-04 22:03 斑竹ll队长
阅读(251)
评论(0)
推荐(0)
for循环及用for循环写猜年龄游戏
摘要: for循环: for循环写猜年龄:
阅读全文
posted @ 2018-07-04 22:00 斑竹ll队长
阅读(532)
评论(0)
推荐(0)
while循环写猜年龄及优化版,任性玩版
摘要: 增加:1、循环猜,2、最多猜3次,3、超过3次输出猜次数过多:
阅读全文
posted @ 2018-07-04 21:57 斑竹ll队长
阅读(223)
评论(0)
推荐(0)
用while循环写猜年龄以及优化版
摘要: 增加:1、循环猜,2、最多猜3次,3、超过3次输出猜次数过多:
阅读全文
posted @ 2018-07-04 21:50 斑竹ll队长
阅读(315)
评论(0)
推荐(0)
while循环
摘要: count=0while True: print("count:",count) count=count+1 #count+=1
阅读全文
posted @ 2018-07-04 21:44 斑竹ll队长
阅读(115)
评论(0)
推荐(0)
猜年龄大小(elif的用法)
摘要: age_of_XueKe=18age=int(input("age:"))if age == age_of_XueKe: print("Yes,you got it!")elif age >age_of_XueKe: print("Think smaller!")else: print("Think
阅读全文
posted @ 2018-07-04 21:43 斑竹ll队长
阅读(193)
评论(0)
推荐(0)
用户名密码对错的判断(if的用法)
摘要: _username="Ck"_password="abc123"username=input("username:")password=input("password:")if username==_username and password==_password: print("Welcome u
阅读全文
posted @ 2018-07-04 21:39 斑竹ll队长
阅读(1264)
评论(0)
推荐(0)
密码密文输入
摘要: import getpass #调用getpass模块 username=input("username:") password=getpass.getpass("password:") print(username,password)
阅读全文
posted @ 2018-07-04 21:36 斑竹ll队长
阅读(146)
评论(0)
推荐(0)
用户输入及格式化输出
摘要: 输入用户名和密码:
阅读全文
posted @ 2018-07-04 21:32 斑竹ll队长
阅读(350)
评论(0)
推荐(0)
Hello World!
摘要: print("Hello World!")
阅读全文
posted @ 2018-07-04 21:27 斑竹ll队长
阅读(95)
评论(0)
推荐(0)
公告