less copy protection, more size visualization
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

20 行
374 B

  1. import sys
  2. TEMPLATE = """,
  3. extra: {0}/{1},
  4. bottom: {2}/{3}"""
  5. if len(sys.argv) < 4:
  6. print("Usage: {0} height bottom top".format(sys.argv[0]))
  7. sys.exit(1)
  8. height = int(sys.argv[1])
  9. bottom = height - int(sys.argv[2])
  10. top = height - int(sys.argv[3])
  11. print(TEMPLATE.format(
  12. (height - bottom),
  13. (top - bottom),
  14. bottom,
  15. height
  16. ))