Awesome python code style [List]
来源:互联网 发布:usb网络共享打不开 编辑:程序博客网 时间:2024/05/16 06:49
1.A = B ? a1:a2
A = (a1, a2)[B == True]
2.List comprehension
a = [i in range(10) if i%2==0]b = [(x,y) for x in range(5) for y in range(3)]
3.read file
with open(filename) as f: image_index = [x.strip() for x in f.readlines()]
0 0
- Awesome python code style [List]
- Style Guide for Python Code
- python PEP8 code style 小结
- Awesome Python Books Awesome
- Awesome Python
- awesome-python
- python PEP8 code style 小结2
- PEP 0008 -- Style Guide for Python Code
- PEP8: Style Guide for Python Code
- code style
- code style
- Code Style
- code style
- Code Style
- code style
- list-style
- list-style
- PEP 8 -- Style Guide for Python Code 编程规范
- 二级C语言复习(1)
- Qt之布局管理——停靠窗口
- 坑爹的HTML5应用集锦
- java框架学习 dubbo
- unity动画制作及与3d max结合
- Awesome python code style [List]
- linux 学习の ulimit and sysctl
- locale的详细解释
- php 调试相关
- 二级C语言复习(2)
- CentOS 7 systemd添加自定义系统服务
- 2012春节买票须知 FIREFOX 买票指南 3分钟完成支付
- CSS3和Canvas动画
- 玩转【斗鱼直播APP】系列之框架搭建