first commit
This commit is contained in:
15
win.py
Normal file
15
win.py
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
import random
|
||||||
|
|
||||||
|
def generate_double_chromosphere():
|
||||||
|
red_balls = random.sample(range(1, 34), 6)
|
||||||
|
red_balls.sort()
|
||||||
|
blue_ball = random.randint(1, 16)
|
||||||
|
return red_balls, blue_ball
|
||||||
|
|
||||||
|
def shake(times=1):
|
||||||
|
for i in range(1, times + 1):
|
||||||
|
reds, blue = generate_double_chromosphere()
|
||||||
|
print(f"第{i}次摇号结果:红球 {reds} | 蓝球 [{blue}]")
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
shake(5)
|
||||||
Reference in New Issue
Block a user