Anders and Briegel in Python
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

25 行
480B

  1. import requests
  2. import abp, json
  3. import time
  4. client = abp.Client(clear=True)
  5. client.add_node(0)
  6. time.sleep(2)
  7. client.add_node(1)
  8. client.add_node(99)
  9. time.sleep(2)
  10. client.act_local_rotation(0, 10)
  11. client.act_local_rotation(1, 10)
  12. client.act_local_rotation(99, 10)
  13. client.act_cz(0, 1)
  14. client.act_cz(0, 99)
  15. client.act_cz(1, 99)
  16. time.sleep(2)
  17. for i in range(10):
  18. client.add_node(i+10)
  19. client.act_local_rotation(i+10, 10)
  20. client.act_cz(0, i+10)
  21. print client.get_state()