最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

女巫模塊

2022-08-06 15:08 作者:愛(ài)玩的思岑  | 我要投稿

# 為實(shí)現(xiàn)狼人殺游戲的python代碼
use = 0 ?# 判斷女巫是否使用雙藥的變量

input('女巫行動(dòng)時(shí)間,按下Enter鍵以繼續(xù)')
print('當(dāng)前擁有:' + ' , '.join(witch_list)) ?# witch_list中存放的是‘解藥’,‘毒藥’
print('當(dāng)前存活的有:' + ' 、 '.join(su))
print('狼隊(duì)襲擊了' + str(killed) + '號(hào)玩家') if '解藥' in witch_list else '你已經(jīng)沒(méi)有解藥了,無(wú)法查看狼隊(duì)襲擊玩家'
if '解藥' in witch_list:
? ?a = input('你要救他嗎?是輸入yes。')
? ?if a == 'yes':
? ? ? ?use = 1 ?# 女巫使用解藥
? ? ? ?witch_list.remove('解藥')


def witch_input():
? ?try:
? ? ? ?k = int(input('你要毒誰(shuí)?'))
? ?except ValueError:
? ? ? ?print('輸入數(shù)字。')
? ? ? ?return witch_input()
? ?else:
? ? ? ?return k


if '毒藥' in witch_list:
? ?if use != 1:
? ? ? ?print('你可以使用毒藥')
? ? ? ?c = input('是否使用毒藥,是輸入yes')
? ? ? ?if c == 'yes':
? ? ? ? ? ?killed_by_witch = witch_input()
? ? ? ? ? ?witch_list.remove('毒藥')
? ? ? ?else:
? ? ? ? ? ?killed_by_witch = 'none'
print('\n'*40)

女巫模塊的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
恩施市| 安达市| 大安市| 宣汉县| 吉木萨尔县| 梁河县| 巴彦县| 六安市| 延庆县| 巴青县| 桂东县| 扶绥县| 新平| 金乡县| 平罗县| 双城市| 喀喇沁旗| 龙泉市| 绥芬河市| 淮南市| 遂宁市| 织金县| 潢川县| 武穴市| 青阳县| 昭苏县| 凤冈县| 德令哈市| 温宿县| 溆浦县| 旺苍县| 墨江| 裕民县| 海淀区| 博湖县| 浙江省| 寿光市| 绍兴市| 孙吴县| 五大连池市| 临夏县|