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

歡迎光臨散文網(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ó)家法律
六盘水市| 昌平区| 无锡市| 竹溪县| 罗源县| 卫辉市| 色达县| 丰宁| 信宜市| 张家口市| 桐柏县| 南川市| 宝鸡市| 敦煌市| 湾仔区| 沿河| 临潭县| 玉树县| 西乌| 平山县| 扎兰屯市| 沁源县| 手游| 依安县| 突泉县| 保定市| 华亭县| 荃湾区| 绿春县| 炎陵县| 邵武市| 南和县| 宿州市| 木兰县| 太保市| 石棉县| 绍兴市| 陕西省| 红安县| 娄烦县| 渝北区|