本作品采用知识共享署名-非商业性使用-相同方式共享 3.0 Unported许可协议进行许可。允许非商业转载,但应注明作者及出处。


作者:liuyuan_jq

2011-04-10


#!/usr/bin/env # -*- coding:utf-8 -*- from visual.text import * # At present, VPython supports only numbers and uppercase characters. Other characters will be displayed as * # Specifying the Title of the window scene.title = "Hello World" # Here goes the hello world text text(pos=(0,3,0), string='HELLO WORLD', color=color.orange, depth=-1, justify='center') text(pos=(0,0,0), string='HELLO WORLD', color=color.orange, depth=0, justify='center') text(pos=(0,-3,0), string='HELLO WORLD', color=color.orange, depth=1, justify='center')

VPython - example - Hello World!

相关文章:

  • 2021-10-07
  • 2021-12-18
  • 2022-01-21
  • 2021-06-02
  • 2022-12-23
  • 2021-11-23
  • 2021-08-07
猜你喜欢
  • 2022-02-15
  • 2021-07-22
  • 2021-10-11
  • 2021-09-13
  • 2021-06-08
  • 2022-01-26
相关资源
相似解决方案