mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
Update 3.PikaScript标准开发流程.md
This commit is contained in:
parent
79c26f83ec
commit
9947236e6e
@ -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类包了。
|
||||
|
Loading…
x
Reference in New Issue
Block a user