返回列表 發帖
  1. # -*- coding: utf-8 -*-
  2. """
  3. Spyder Editor

  4. This is a temporary script file.
  5. """
  6. x=5.4779
  7. print("x=%.2f"%x)
  8. print("x=%5.2f"%x)
  9. y=99
  10. print("y=%4d"%y)
  11. print("y=%04d"%y)
複製代碼

TOP

返回列表