first.py 340 B

12345678910111213141516171819202122232425262728293031323334
  1. #encoding=utf-8
  2. 20
  3. a=30
  4. b=34
  5. +30
  6. #注释
  7. c:int
  8. 45+60;
  9. ab = 56
  10. _a = 89.90
  11. a1=123
  12. a2=0xAB
  13. print(a1, a2, 0o77, 0b11)
  14. b1:float
  15. b1= -12.45
  16. b2= -34.56e4
  17. print(b1, b2)
  18. # PEP8.0
  19. c1 = b'\091\092'
  20. c2 = f"Hello{b1:010.6f}"
  21. c3 = '''Hello
  22. world'''
  23. print(c1, c2, c3)
  24. print(F"XXXX{12:06d}XXX")
  25. print(F"XXXX{-12.5678:+010.4f}XXX")
  26. d1=True
  27. print(d1)