上一页 1 ··· 26 27 28 29 30
摘要: 列表中的index,extend,count方法 first_black_index: 3second_black_index: 1second_black_index_in_big_list: 5second_black_value is: black[1, 2, 3, 4, 5, 6]3 ['m 阅读全文
posted @ 2019-10-24 18:30 Stary_tx 阅读(338) 评论(0) 推荐(0) 编辑
摘要: #_author:Administrator#date:2019/10/24#列表List#增删改查#增 *1 切片a=['xiaowwang','xiaohuang','xiaozhang','xiaodu','aming']print(a[4]) #amingprint(a[1:]) #['xi 阅读全文
posted @ 2019-10-24 17:41 Stary_tx 阅读(283) 评论(0) 推荐(0) 编辑
摘要: please input your username:aplease input your password:ayour username or password is Errorplease input your username:aplease input your password:ayour 阅读全文
posted @ 2019-10-24 15:37 Stary_tx 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 登录操作(方法二:for与else搭配) please input your username:aaaplease input your password:ayour username or password is Errorplease input your username:aplease in 阅读全文
posted @ 2019-10-24 14:56 Stary_tx 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 登录操作(方法一:设置flag标志位) please input your username:qweplease input your password:222your username or password is Errorplease input your username:starpleas 阅读全文
posted @ 2019-10-24 14:53 Stary_tx 阅读(923) 评论(0) 推荐(0) 编辑
摘要: Name:Mr.starAge:22Job:Python engenerSalary:12000 info of Mr.star Name:Mr.starAge:22Job:Python engenerSalary:12000you will be retired in 43 years 阅读全文
posted @ 2019-10-24 13:43 Stary_tx 阅读(173) 评论(0) 推荐(0) 编辑
摘要: print("*" *8)for a in range(1,9): print(a,end="")#1-9的奇数print()for a in range(1,10,2): print(a,end="")#1-100的和print()sum=0for a in range(1,101): sum+= 阅读全文
posted @ 2019-10-24 12:46 Stary_tx 阅读(219) 评论(0) 推荐(0) 编辑
摘要: while循环'''此类编程题,注意带进去试一试1.九九乘法表row=1while row<=9: col=1 while col<=row: print(col,"*",row,"=",row*col,end=" ") col+=1 print() row+=1 #注意end=" "2.按照用户的 阅读全文
posted @ 2019-10-23 18:19 Stary_tx 阅读(277) 评论(0) 推荐(0) 编辑
上一页 1 ··· 26 27 28 29 30