把別人的Tcl/Tk代碼加入到Go語言裏1 超橢圓

a 首先打開網頁 http://wiki.tcl.tk/12977git

b 把網頁裏提到的tcl/tk代碼複製到go源代碼的init_script字符串常量裏github

package mainspa

import "github.com/nsf/gothic"
ip

const init_script = `字符串

#把Tcl/Tk源代碼複製到這個常量裏
it

`import

func main() {im

    ir := gothic.NewInterpreter(init_script)img

    <-ir.Doneco

}

c 在LiteIDE裏run ,運行效果以下

相關文章
相關標籤/搜索