🔄 NOYTHP — Python 倒着写
Project description
🔄 NOYTHP
Python 关键字倒着写。print → tnirp,def → fed。
tnirp("!nohtyp esrever si NOYTHP")
安装
pip install noythp
用法
import noythp
# 直接调用反转函数
noythp.tnirp("hello")
noythp.nel("world")
# 或者写一段反转代码
code = noythp.transpile('''
fed 双倍(x):
nruter x * 2
tnirp(双倍(21))
''')
exec(code)
命令行
python -m noythp
🔄> tnirp("hi")
一句话原理
反转关键字 → 替换回 Python → 执行。纯 Python,零依赖。
https://pypi.org/project/noythp/
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
noythp-0.2.3.tar.gz
(6.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file noythp-0.2.3.tar.gz.
File metadata
- Download URL: noythp-0.2.3.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
417f73324e013393e44848c6cbe1f5ba5d8ea80449b11362860a975e4ed3f17a
|
|
| MD5 |
d9c273854da7942c23b440c50729ea65
|
|
| BLAKE2b-256 |
42b94856dd5d942c438f99b7c0e9ea7719ee463207777818cffadce4ac4f8ebb
|
File details
Details for the file noythp-0.2.3-py3-none-any.whl.
File metadata
- Download URL: noythp-0.2.3-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85b91bbabdaa9fb5b35a53dfc8471fc6da2204896569dc5873a5ccbabed2140f
|
|
| MD5 |
48b1a914fe67ed09021ecd6b5e2a1ff9
|
|
| BLAKE2b-256 |
774de857758e486c38831b9954b50476d3a8076806c0f99e0dd091e5bf2541db
|