產生隨機亂數(浮點數). random 函數可以產生介於 0 到 1 之間隨機浮點數: # 產生介於0 到1 之間的隨機浮點數(0.0 <= x < 1.0) x = random.random() print(x)
確定! 回上一頁