还在为ctrl+C时Traceback停在time.sleep()上而感到尴尬吗?在你的项目中引入这个包吧,它会把所有的KeyboardInterrupt输出traceback信息的最后一行替换成model.py,让你的代码看起来就像是在跑一个神经网络模型一样酷炫!
Project description
There is No Time to Sleep
没时间睡觉了
还在为ctrl+C时Traceback停在time.sleep()上而感到尴尬吗?在你的项目中引入这个包吧,它会把所有的KeyboardInterrupt输出traceback信息的最后一行替换成model.py,让你的代码看起来就像是在跑一个神经网络模型一样酷炫!
Clone本项目到你的工程目录下,然后在你的入口文件代码中import它,其余的什么也不用做!
import NTTS
然后你的代码在ctrl+C时就会给出漂亮的输出
Traceback (most recent call last):
File "d:/GitHub/test.py", line 14, in <module>
a()
File "d:/GitHub/test.py", line 5, in a
b()
File "d:/GitHub/test.py", line 9, in b
c()
File "C:/Users/admin/anaconda3/envs/torch/lib/site-packages/mindx/model.py", line 23, in c
Model.inference(img)
KeyboardInterrupt
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
NTTS-0.1.0-py3-none-any.whl
(3.5 kB
view details)
File details
Details for the file NTTS-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: NTTS-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a2fc79c0a3d780eeb8d4fbd375c718dd8a7b49de6662bd879bd81895922856e |
|
MD5 | 4311c201ad376e9409a62c4cb5e72b0c |
|
BLAKE2b-256 | 27b4ce4c2c1f4b31a5a50905457d2398df0b85fda5090b2b6f17fd0f9db8677d |