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

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

python猜數(shù)游戲代碼

2022-02-03 15:22 作者:大威的水杯  | 我要投稿

from time import *

from os import *

def c(text):

? ? timee = 0.1

? ? for i in text:

? ? ? ? sleep(timee)? ??

? ? ? ? print(i,end='',flush = True)

? ? print("",end="\n")

def biaoti():

? ? c('\033[33m? 魔術(shù)之心靈感應(yīng)!')

ls1 = [1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63]

ls2 = [2,3,6,7,10,11,14,15,18,19,22,23,26,27,30,31,34,35,38,39,42,43,46,47,50,51,54,55,58,59,62,63]

ls4 = [4,5,6,7,12,13,14,15,20,21,22,23,28,29,30,31,36,37,38,39,44,45,46,47,52,53,54,55,60,61,62,63]

ls8 = [8,9,10,11,12,13,14,15,24,25,26,27,28,29,30,31,40,41,42,43,44,45,46,47,56,57,58,59,60,61,62,63]

ls16 = [16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63]

ls32 = [32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63]

def wen():

? ? ansz = 0

? ? print()

? ? c("\033[31m想一個(gè)0~63任意的一個(gè)數(shù)!")

? ? ans1 = input("\033[32m這里有你想的數(shù)嗎?(yes / no)\n" + str(ls1)+"\n")

? ? if ans1 == "yes":

? ? ? ? ansz += 1

? ? ans2 = input("\033[33m這里有你想的數(shù)嗎?(yes / no)\n" + str(ls2)+"\n")

? ? if ans2 == "yes":

? ? ? ? ansz += 2

? ? ans3 = input("\033[31m這里有你想的數(shù)嗎?(yes / no)\n" + str(ls4)+"\n")

? ? if ans3 == "yes":

? ? ? ? ansz += 4

? ? ans4 = input("\033[34m這里有你想的數(shù)嗎?(yes / no)\n" + str(ls8)+"\n")

? ? if ans4 == "yes":

? ? ? ? ansz += 8

? ? ans5 = input("\033[36m這里有你想的數(shù)嗎?(yes / no)\n" + str(ls16)+"\n")

? ? if ans5 == "yes":

? ? ? ? ansz += 16

? ? ans6 = input("\033[33m這里有你想的數(shù)嗎?(yes / no)\n" + str(ls32)+"\n")

? ? if ans6 == "yes":

? ? ? ? ansz += 32

? ? print("你想的數(shù)是"+str(ansz)+"吧!")

biaoti()

wen()


python猜數(shù)游戲代碼的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
隆安县| 慈溪市| 宾阳县| 循化| 丰镇市| 南陵县| 五台县| 鸡西市| 炎陵县| 临漳县| 永济市| 承德县| 调兵山市| 吉首市| 城口县| 宜章县| 吴川市| 乌审旗| 礼泉县| 湄潭县| 那坡县| 南宫市| 天门市| 灌云县| 赞皇县| 晴隆县| 奉化市| 乌恰县| 梁平县| 革吉县| 长汀县| 延长县| 东山县| 昭苏县| 辛集市| 象山县| 濉溪县| 宁明县| 莎车县| 保山市| 拉萨市|