【幼女Code】反和谐超级武器!
你还在因为在群名里加入色图而被QQ改成一个「*」而苦恼吗?你还在因为在红包祝福里写「年轻人好好自慰」而白白花钱吗?
快使用幼女Code吧!
幼女Code使用Librian幼女娱乐中心最新研发的unvcode,可以快速解决你的一切问题!
原理
在unicode中(注意这不是unvcode),有很多字,它们看起来长得很像,但是它们的ord不一样。
这样一来,只要把字符串里原本的字……啊,点到为止,再说下去就不好玩了。
效果
幼女Code真是太棒了!
接口
def unvcode(s: str, skip_ascii=True) -> Tuple[str, Tuple[float, ...]]:
输入一个字符串,返回改变后的字符串、每个字符被改变后与原本的像素差异(没变就是None)。
如果skip_ascii开启则会跳过ascii字符。
样例:
import unvcode
s, var = unvcode.unvcode('Librian幼女娱乐中心开业了,注册即送色图!')
print(s)
print(var)
输出:
Librian幼⼥娱乐㆗⼼开业了,注册即送⾊图!
(None, None, None, None, None, None, None, None, 0.0, None, None, 0.009146429779930796, 0.0, None, None, 0.0, None, None, None, None, None, 0.0, None, None)
注意,这句话看起来的样子取决于你的系统字体,所以我也不知道它会是什么样的……
安装
pip install unvcode
然后在代码里import unvcode就行了,就是这么简单!
(我还没发好包,等等先别装……)
结束
如果你觉得幼女Code对你的工作或学习有所帮助,欢迎给作者送一些幼女过来。
Metadata
Release files for unvcode 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| unvcode-1.0.0.tar.gz | 9.8 MB | Without provenance | Details for unvcode-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| unvcode-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for unvcode-1.0.0-py3-none-any.whl |
Total release size: 19.5 MB
Release files / unvcode-1.0.0.tar.gz
| Download URL | unvcode-1.0.0.tar.gz |
|---|---|
| Size | 9.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c6011740c9d0d60e0a09bb5a440c57a62816c9b6e7ece419664baa65bff64003
|
|
BLAKE2b-256 checksum How to use checksums |
9395345ebabe8a1af6856e45324368692704636a8d045ae5a824fceedec26abf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.1 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0
|
Release files / unvcode-1.0.0-py3-none-any.whl
| Download URL | unvcode-1.0.0-py3-none-any.whl |
|---|---|
| Size | 9.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ca421c0c88171be99361b4e89bf08b7ca658185d1e600e5cf5cfcd686d62c270
|
|
BLAKE2b-256 checksum How to use checksums |
07704037fa2a9dad4fe1f14e266fb771e6de9f872920868b104b9cdefd1dfcaa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.1 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0
|
Security for unvcode 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.