Files
easy-rl/codes/test.py
johnjim0816 895094a893 update
2021-04-29 14:44:25 +08:00

20 lines
482 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/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)]}")