Skip to main content

A Python Lirary that you can encode av-number to BV-string or decode BV-string.

Project description

biliBV

来源

算法来源

感谢原作者,知乎用户mcfx.

开源链接

怎样使用这个库

非常简单,只有两个函数.

  • decode()

    • 将BV字符串转换为av编号,返回值是一个int类型的av编号.
    • 用法
      • 传入一个字符串,以"BV"开头.
      • 例子:BV1FE411A7Xd -> decode("BV1FE411A7Xd")
  • encode()

    • 将av编号转换为BV字符串,返回值一个str类型的BV字符串
    • 用法
      • 传入一个字符串,以"av"开头.
      • 例子:av97809031 -> encode("av97809031")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for biliBV, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size biliBV-1.0.1-py3-none-any.whl (2.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size biliBV-1.0.1.tar.gz (1.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page