思想开放的嘶嘶声
openfizzbuzz的Python项目详细描述
openfizzbuzz
思想开放的Python嘶嘶声
pip install openfizzbuzz pip install -r requirements.txt python3.7 -m openfizzbuzz
FizzBuzz original question
Write a program that prints the numbers from 1 to 100. For multiples of three print "Fizz" instead of the number, and for the multiples of five print "Buzz". For numbers which are multiples of both tree and five print "FizzBuzz".
想法
- 类和函数
- 模块结构
- 兰姆达
- 测井
- 一些测试
- 新数据类
- 列表理解
- 覆盖范围
- pypi设置
- 工厂(和其他模式?)在
更多想法
- MRO操作
- 动态方法绑定
- 执行/编译文本
- 内部python整数操作(ctypes)
- pyc/pyo公司
注意事项
象形日志格式:
消息模式:^(\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2},\d{3})\s*::\s*(\S*)\s*::\s*(\S*)\s*::\s*(.+)$
时间格式:yyyy-MM-dd HH:mm:ss,SSS
时间捕获组:1
严重性捕获组:2
类别捕获组:3
在测试.pypi.org
^{pr2}$- 项目
标签: