function print work or not work
Project description
模块介绍
这个模块封装了一个类,类中有一个__init__方法和一个print方法,
当初始化传入的时True时,print方法等同于内置函数print,
当传入False时,print方法不会打印任何东西。
代码示例
from donotprint.donotprint import Print
my_str = 'string'
a = Print(True)
a.print(my_str) # 此时会输出值
b = Print(False)
b.print(my_str) # 此时不会输出值
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 Distribution
donotprint-1.0.0.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for donotprint-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d279697faacadc8b8a19936aa479512953ce9599bc8d1493ed0383c755582124 |
|
MD5 | d50f5cdf916a81f62b40f234a4d5ec6e |
|
BLAKE2b-256 | 1f2a6e1d8b8260a7c2e44b2d66ecd1c77168989dc6193b7a5dc425f318f74197 |