詹瑋哲python math random
w3schools學習python math random函式庫
import math #詹瑋哲 輸入數學函示庫
import random #輸入亂數資料庫
x=math. sqrt(2)
print(x)
#大樂透是49個號碼開出六個
for i in range(6):
x=random.randint(1,49)
print("開出的第 "+str(i+1)+" 個號碼 "+str(x))
#str是將數字轉成字串string
留言
張貼留言