返回列表 發帖
  1. # -*- coding: utf-8 -*-
  2. """
  3. Created on Sat Feb  1 11:50:10 2020

  4. @author: student
  5. """

  6. aa=3.14
  7. print("圓周率%.3f"%aa)
  8. print("圓周率%5.3f"%aa)
  9. print("圓周率%7.1f"%aa)
  10. print("圓周率%f"%aa)
  11. print("圓周率%d"%aa)
  12. print("圓周率%s"%aa)
  13. print("圓周率%08.4f"%aa)
複製代碼

TOP

返回列表