会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
ttm6489
上一页
1
···
9
10
11
12
13
2021年12月25日
python_guess age
摘要: # author: Roy.Gage_of_oldboy = 56count = 0while count<3: if count==3: break guess_age=int( input ("guess age:")) if guess_age == age_of_oldboy: print(
阅读全文
posted @ 2021-12-25 19:41 ttm6489
阅读(42)
评论(0)
推荐(0)
python_shopping
摘要: # author: Roy.Gshopping_cart=[]salery=input("salery is :")item_list=[ ("a",500), ("b",600), ("b",700), ("d",800), ("e",900), ("f",1000), ("g",1100), (
阅读全文
posted @ 2021-12-25 18:31 ttm6489
阅读(98)
评论(0)
推荐(0)
python_enumerate
摘要: # author: Roy.Ga=[1,2,3,4,5,6]b=enumerate(a)print(a)for i in b: print(i)# enumerate 好像是将原来的数组的序号,记录在了一块内存中,而元素定义成序号加元素 的形式,当调用他时,只能逐项取出元素,因为,b=enmumer
阅读全文
posted @ 2021-12-25 18:10 ttm6489
阅读(42)
评论(0)
推荐(0)
上一页
1
···
9
10
11
12
13
导航
博客园
首页
新随笔
联系
订阅
管理
公告