Skip to main content

to assist finding examples for api of all kinds of libraries

Project description

文档API案例帮助利器

使用帮助文档

导入包,其中最重要的一个API:find方法

from glowworm import find 

如果find方法不带有任何参数,默认显示前5个小例子

find()      

输出:

未输入查询关键词默认显示前5个小例子

        Example
        --------

        1 常见算术运算
        x, y = 3, 2
        print(x + y) # = 5
        print(x - y) # = 1
        print(x * y) # = 6
        print(x / y) # = 1.5
        print(x // y) # = 1
        print(x % y) # = 1
        print(-x) # = -3
        print(abs(-x)) # = 3
        print(int(3.9)) # = 3
        print(float(x)) # = 3.0
        print(x ** y) # = 9


        Example
        --------

        2 实现 relu

        x: 输入参数
        return输出relu值

        在神经网络中relu作为神经元的激活函数
        测试
        relu(5) # 5
        relu(-1) # 0


        Example
        --------

        3 进制转化
        十进制转换为二进制

        In [2]: bin(10)
        Out[2]: '0b1010'
        十进制转换为八进制

        In [3]: oct(9)
        Out[3]: '0o11'
        十进制转换为十六进制

        In [4]: hex(15)
        Out[4]: '0xf'


        Example
        --------

        4 整数和ASCII互转
        十进制整数对应的ASCII字符

        In [1]: chr(65)
        Out[1]: 'A'
        查看某个ASCII字符对应的十进制数

        In [1]: ord('A')
        Out[1]: 65

输入查询关键词:互转

find('互转')  

查询得到结果:

找到 1 个包含"互转"的例子

        Example
        --------

        4 整数和ASCII互转
        十进制整数对应的ASCII字符

        In [1]: chr(65)
        Out[1]: 'A'
        查看某个ASCII字符对应的十进制数

        In [1]: ord('A')
        Out[1]: 65

输入关键词十进制

find('十进制')  

查询得到结果:

找到 2 个包含"十进制"的例子

        Example
        --------

        3 进制转化
        十进制转换为二进制

        In [2]: bin(10)
        Out[2]: '0b1010'
        十进制转换为八进制

        In [3]: oct(9)
        Out[3]: '0o11'
        十进制转换为十六进制

        In [4]: hex(15)
        Out[4]: '0xf'


        Example
        --------

        4 整数和ASCII互转
        十进制整数对应的ASCII字符

        In [1]: chr(65)
        Out[1]: 'A'
        查看某个ASCII字符对应的十进制数

        In [1]: ord('A')
        Out[1]: 65

最新release

v0.1.5

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

pyglowworm-0.1.6.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyglowworm-0.1.6-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file pyglowworm-0.1.6.tar.gz.

File metadata

  • Download URL: pyglowworm-0.1.6.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for pyglowworm-0.1.6.tar.gz
Algorithm Hash digest
SHA256 e8a84434be28c9fba9c6434fdf32f3c4bf4cc3b385a17c7e7e98e5dd73d54202
MD5 f8c465cdc402d5f633d184c70fa260a7
BLAKE2b-256 10a888e86f1fb2eb50f7e7980bf9e3200c7b839cc81e15d909bd4e645d07268a

See more details on using hashes here.

File details

Details for the file pyglowworm-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: pyglowworm-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for pyglowworm-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 609a4b932d06ebedb28e18dc5090e608913637da1f5082dfee0f415e69055c30
MD5 fba5089daa065598c918db075cf039db
BLAKE2b-256 9279ee201bbf1216184f9f241ca9de1ac9260d7b66c38338f3321ccb779c5c23

See more details on using hashes here.

Supported by

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