less copy protection, more size visualization
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

20 lines
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. ))