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