This commit is contained in:
johnjim0816
2021-04-29 14:44:25 +08:00
parent ed7b60fd5b
commit 895094a893
19 changed files with 538 additions and 33 deletions

20
codes/test.py Normal file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/env python
# coding=utf-8
'''
Author: JiangJi
Email: johnjim0816@gmail.com
Date: 2021-03-25 23:25:15
LastEditor: JiangJi
LastEditTime: 2021-04-28 21:36:50
Discription:
Environment:
'''
import random
dic = {0:"鳗鱼家",1:"一心",2:"bada"}
print("0:鳗鱼家1:一心2:bada")
print("三次随机,取最后一次选择")
for i in range(3):
if i ==2:
print(f"{dic[random.randint(0,2)]}")
else:
print(f"不去{dic[random.randint(0,2)]}")