会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
做梦当财神
首页
管理
2019年3月1日
Python 小技巧
摘要: 1. if语句在行内 print('Hello' if True else 'World') Hello 2. 数值比较 x = 2 if 3>x>1: print(x) if 1<x>0: print(x) 2 2 3. 迭代工具 和collections库相似,还有一个库itertools,能高
阅读全文
posted @ 2019-03-01 16:30 做梦当财神
阅读(277)
评论(0)
推荐(0)
公告