12345678910111213141516171819202122232425262728293031323334 |
- #encoding=utf-8
- 20
- a=30
- b=34
- +30
- #注释
- c:int
- 45+60;
- ab = 56
- _a = 89.90
- a1=123
- a2=0xAB
- print(a1, a2, 0o77, 0b11)
- b1:float
- b1= -12.45
- b2= -34.56e4
- print(b1, b2)
- # PEP8.0
- c1 = b'\091\092'
- c2 = f"Hello{b1:010.6f}"
- c3 = '''Hello
- world'''
- print(c1, c2, c3)
- print(F"XXXX{12:06d}XXX")
- print(F"XXXX{-12.5678:+010.4f}XXX")
- d1=True
- print(d1)
|