使用Vpython作图(helloworld)

 时间:2024-10-26 08:02:11

1、先在ubuntu下安装vpythonsudo apt-get install Python-visual

2、进入python导入模块from visual.text import *

3、输入代码:scene.title="HelloWorld"text(pos=(0,3,0),string='HELLOWORLD',color=color.orange,depth=-1,justify='center')text(pos=(0,0,0),string='HELLOWORLD',color=color.orange,depth=0,justify='center')text(pos=(0,-3,0),string='HELLOWORLD',color=color.orange,depth=1,justify='center')

使用Vpython作图(helloworld)

4、可见下图

使用Vpython作图(helloworld)

5、回车;可见下图

使用Vpython作图(helloworld)

6、初步完成Vpython demo

  • 光缆接头如何做?
  • 对不熟悉的应用系统首先如何入手
  • 如何让numpy使用gpu
  • 战旗直播怎么注销账号
  • LaTex排版技巧:[8]如何排版带上下括号的公式
  • 热门搜索
    胃受凉了怎么办 农家小炒肉的家常做法 连衣裙英语怎么说 生板栗怎么做好吃 猪肝怎么做好吃 泡椒凤爪怎么做好吃 饼的种类及做法大全 肉末茄子的家常做法 床戏大全 精囊炎的治疗方法