From 9947236e6e130bf192c366594acacaccd0a1ec12 Mon Sep 17 00:00:00 2001 From: Lyon <88232613+mimilib@users.noreply.github.com> Date: Fri, 27 Aug 2021 19:12:33 +0800 Subject: [PATCH] =?UTF-8?q?Update=203.PikaScript=E6=A0=87=E5=87=86?= =?UTF-8?q?=E5=BC=80=E5=8F=91=E6=B5=81=E7=A8=8B.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/3.PikaScript标准开发流程.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/3.PikaScript标准开发流程.md b/doc/3.PikaScript标准开发流程.md index 089a1b7d0..6ac2e22e5 100644 --- a/doc/3.PikaScript标准开发流程.md +++ b/doc/3.PikaScript标准开发流程.md @@ -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类包了。