从输入的时间开始倒数的基本计时器
timerr的Python项目详细描述
python的timerr包
这是一个简单的python计时器包,它从时间集合中计数Down
。
如果您有任何建议,
- Email我同意你的建议或
- 在编辑代码时添加pull请求,我将查看它
用法
安装
pip install timerr
脚本
# Import the timerr moduleimporttimerr# Create a variable named 'timer' and call the class 'Timer'# Arguments are (hours, mins, secs, log)# Default is a 1h timer and not to print the time left# To print the time left, if all args are passsed, use 'log' otherwise copy below# This sets a timer for 3h 45mins and to print the time lefttimer=timerr.Timer(3,45,log='log')# Run the 'timer' function from the variabletimer.timer()
口译员
>>>importtimerr>>>timerr.Timer(3,45,15,'log').timer()
许可证和版权
版权所有(c)2019 itzaroboy
这个包裹在MIT License下面。
在许可证下,您可以修改文件
作为closed-source