Skip to main content

unvcode

Project description

【幼女Code】反和谐超级武器!

你还在因为在群名里加入色图而被QQ改成一个「*」而苦恼吗?你还在因为在红包祝福里写「年轻人好好自慰」而白白花钱吗?

快使用幼女Code吧!

幼女Code使用Librian幼女娱乐中心最新研发的unvcode,可以快速解决你的一切问题!

原理

在unicode中(注意这不是unvcode),有很多字,它们看起来长得很像,但是它们的ord不一样。

这样一来,只要把字符串里原本的字……啊,点到为止,再说下去就不好玩了。

效果

./doc/233.jpg

幼女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对你的工作或学习有所帮助,欢迎给作者送一些幼女过来。

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

unvcode-1.0.0.tar.gz (9.8 MB view details)

Uploaded Source

Built Distribution

unvcode-1.0.0-py3-none-any.whl (9.8 MB view details)

Uploaded Python 3

File details

Details for the file unvcode-1.0.0.tar.gz.

File metadata

  • Download URL: unvcode-1.0.0.tar.gz
  • Upload date:
  • Size: 9.8 MB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for unvcode-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c6011740c9d0d60e0a09bb5a440c57a62816c9b6e7ece419664baa65bff64003
MD5 37e868248fa5415242ef3ca242a17b4d
BLAKE2b-256 9395345ebabe8a1af6856e45324368692704636a8d045ae5a824fceedec26abf

See more details on using hashes here.

File details

Details for the file unvcode-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: unvcode-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 9.8 MB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for unvcode-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ca421c0c88171be99361b4e89bf08b7ca658185d1e600e5cf5cfcd686d62c270
MD5 548b143867b5d2b29f3176de3f3483cc
BLAKE2b-256 07704037fa2a9dad4fe1f14e266fb771e6de9f872920868b104b9cdefd1dfcaa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page