Update 3.PikaScript标准开发流程.md

This commit is contained in:
Lyon 2021-08-27 19:12:33 +08:00 committed by GitHub
parent 79c26f83ec
commit 9947236e6e

View File

@ -164,9 +164,9 @@ def set(argPath: str, val: any):
``` python
# Math.py
class Adder(TinyObj):
byInt(a:int, b:int)->int:
def byInt(a:int, b:int)->int:
pass
byFloat(a:float, b:float)->float:
def byFloat(a:float, b:float)->float:
pass
```
@ -177,9 +177,9 @@ class Adder(TinyObj):
``` python
# Math.py
class Multiplier(TinyObj):
byInt(a:int, b:int)->int:
def byInt(a:int, b:int)->int:
pass
byFloat(a:float, b:float)->float:
def byFloat(a:float, b:float)->float:
pass
```
到此类接口就编写完成了。我们在main.py中引入Math包这样Pika预编译器就会去编译Math类包了。