Skip to main content

文档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

Metadata

Release files for pyglowworm 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyglowworm 0.1.6
File Size Uploaded
pyglowworm-0.1.6.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyglowworm 0.1.6
File Interpreter ABI Platform
pyglowworm-0.1.6-py3-none-any.whl Python 3 none any Details

Total release size: 8.8 kB

Release files / pyglowworm-0.1.6.tar.gz

Download URL pyglowworm-0.1.6.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e8a84434be28c9fba9c6434fdf32f3c4bf4cc3b385a17c7e7e98e5dd73d54202
BLAKE2b-256 checksum
How to use checksums
10a888e86f1fb2eb50f7e7980bf9e3200c7b839cc81e15d909bd4e645d07268a
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / pyglowworm-0.1.6-py3-none-any.whl

Download URL pyglowworm-0.1.6-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
609a4b932d06ebedb28e18dc5090e608913637da1f5082dfee0f415e69055c30
BLAKE2b-256 checksum
How to use checksums
9279ee201bbf1216184f9f241ca9de1ac9260d7b66c38338f3321ccb779c5c23
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page