Casting - 浮点

  1. x = float(1)
  2. y = float(2.5)
  3. z = float("3")
  4. w = float("4.6")
  5. print(x)
  6. print(y)
  7. print(z)
  8. print(w)