兒童程式語言small basic

lt發表於2016-11-12

微軟出品
下載地址
介紹
入門指南
能編寫控制檯程式

TextWindow.Write("輸入你的姓名:")

name = TextWindow.Read()

TextWindow.WriteLine(name + "你好")

和圖形介面程式。

GraphicsWindow.BrushColor = "Blue"

GraphicsWindow.MouseDown = OnMouseDown

GraphicsWindow.KeyDown = OnKeyDown



Sub OnKeyDown

  GraphicsWindow.BrushColor = GraphicsWindow.GetRandomColor()

EndSub



Sub OnMouseDown

  x = GraphicsWindow.MouseX - 10

  y = GraphicsWindow.MouseY - 10

  GraphicsWindow.FillEllipse(x, y, 20, 20)

EndSub

感覺還是需要一定英語基礎的。

相關文章