python中randint函數默認值?
1 from random import randint2 print("隨機生成10個隨機整數。")
3 i = 0
4 while True:
5 i += 1
6 print(randint(0,10))
7 if i == 10:
8 break
python中randint函數默認值?
1 from random import randint2 print("隨機生成10個隨機整數。")
3 i = 0
4 while True:
5 i += 1
6 print(randint(0,10))
7 if i == 10:
8 break