内在自我始终存在
项目描述
Innerself
class Zen:
@innerself
def __init__(self, the, path, to, enlightenment):
your_innerself = f'is {the} {path} {to} {enlightenment}'
@innerself(readonly=True)
def chaos(self, dont, let, the, anger, and_chaos, control, you):
return f'{you} {control} your own {path} {to} {enlightenment}'
>>> zen = Zen('the', 'path', 'to', 'enlightenment')
>>> zen.your_innerself
'is the path to enlightenment'
>>> zen.chaos("don't", 'let', 'the', 'anger', 'and chaos', 'control', 'you')
'you control your own path to enlightenment'
>>> hasattr(zen, 'enlightenment')
True
>>> hasattr(zen, 'anger')
False
安装: pip install innerself
项目详情
下载文件
下载适合您平台文件的文件。如果您不确定选择哪个,请了解更多关于安装软件包的信息。
源分发
innerself-0.0.2.tar.gz (21.1 kB 查看哈希值)
构建分发
innerself-0.0.2-py3-none-any.whl (5.9 kB 查看哈希值)
关闭
innerself-0.0.2.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | c62511580232c180af75680d93069544db4cfc70c6df2b0a66ac98642ab17efe |
|
MD5 | 77b172711bea505f9961550a4cad662f |
|
BLAKE2b-256 | 5efcff2c50a983157962bc80551c91fdffb4002b51b630a53163d441e9950591 |