【文件属性】:
文件名称:python-function:Python函数示例
文件大小:12KB
文件格式:ZIP
更新时间:2021-04-02 15:35:25
Python
python函数
这是如何使用python函数的示例。
项目结构
python_function
├── __init__.py
├── custom_object_function.py
└── pyserde
├── __init__.py
└── serde.py
在python中,如果文件夹包含__init__文件,我们将其称为包,python_function和pyserde都是包。 压缩python_function目录将生成python_function.zip 。
如何使用
独立启动脉冲星
docker run -d -it \
-p 6650:6650 \
-p 8080:8080 \
--name pulsar-standalone \
apachepulsar/pulsar-all:2.7.1 \
bin/pul
【文件预览】:
python-function-main
----python_function_schema()
--------python_function_schema.py(2KB)
--------__init__.py(0B)
----complex-schema-consumer.py(1KB)
----test-producer-consumer.py(1KB)
----complex-schema-producer.py(1KB)
----test-function-schema-producer-consumer.py(795B)
----python_funciton_complex_schema.zip(1KB)
----python_function_schema.zip(1KB)
----README.md(3KB)
----python_function.zip(2KB)
----python_funciton_complex_schema()
--------python_function_complex_schema.py(1KB)
--------__init__.py(0B)
----python_function()
--------custom_object_function.py(1KB)
--------__init__.py(0B)
--------pyserde()