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

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

備忘3

2021-10-29 07:43 作者:Power_Tea  | 我要投稿

#! /usr/bin/python3

def s_seq():

? ? red_balls = []

? ? blue_balls = []

? ? li = [[6, 33, "紅球", red_balls], [1, 16, "籃球", blue_balls]]

? ? for item in li:

? ? ? ? print(f"開始輸入{item[2]}".center(75, '-'))

? ? ? ? count = 0

? ? ? ? while count < item[0]:

? ? ? ? ? ? choice = input(f"輸入第{count + 1}個{item[2]}>>:").strip()

? ? ? ? ? ? if not choice.isdigit():

? ? ? ? ? ? ? ? print("輸入不正確,請重新輸入?。?!")

? ? ? ? ? ? ? ? continue

? ? ? ? ? ? choice = int(choice)

? ? ? ? ? ? if 0 < choice <= item[1] and choice not in item[3]:

? ? ? ? ? ? ? ? item[3].append(choice)

? ? ? ? ? ? ? ? count += 1

? ? print("$"*80)

? ? print(f"\t下一個 雙色球 超級富豪即將購買 紅球--{red_balls},籃球--{blue_balls}")

? ? print("成事在人富貴在天,勸君量力而行,祝君好運?。?!")

? ? print("$" * 80)



def d_let():

? ? red_balls = []

? ? blue_balls = []

? ? li = [[5, 35, "紅球", red_balls], [2, 12, "籃球", blue_balls]]

? ? for item in li:

? ? ? ? print(f"開始輸入{item[2]}".center(75, '-'))

? ? ? ? count = 0

? ? ? ? while count < item[0]:

? ? ? ? ? ? choice = input(f"輸入第{count + 1}個{item[2]}>>:").strip()

? ? ? ? ? ? if not choice.isdigit():

? ? ? ? ? ? ? ? print("輸入不正確,請重新輸入?。?!")

? ? ? ? ? ? ? ? continue

? ? ? ? ? ? choice = int(choice)

? ? ? ? ? ? if 0 < choice <= item[1] and choice not in item[3]:

? ? ? ? ? ? ? ? item[3].append(choice)

? ? ? ? ? ? ? ? count += 1

? ? print("$"*80)

? ? print(f"\t下一個 大樂透 超級富豪的將購買 紅球--{red_balls},籃球--{blue_balls}")

? ? print("成事在人富貴在天,勸君量力而行,祝君好運!??!")

? ? print("$" * 80)



while True:

? ? print("*" * 80)

? ? print("")

? ? print("\t\t\t歡迎使用 【富豪誕生系統(tǒng)】 V 1.0")

? ? print("")

? ? print('\tUP主云:"命里有時終須有,命里無時莫強求,純屬娛樂莫當真哈哈。。。。。"')

? ? print("")

? ? print("")

? ? print("\t\t\t\t選擇? [1]? 通過雙色球誕生")

? ? print("")

? ? print("\t\t\t\t選擇? [2]? 通過大樂透誕生")

? ? print("")

? ? print("\t\t\t\t選擇? [0]? 放棄暴富機會")

? ? print("")

? ? print("*" * 80)

? ? action_str = input("\t\t\t請選擇怎樣誕生:")

? ? print("\t\t\t您選擇的操作是 【%s】" % action_str)

? ? if action_str in ["1", "2"]:

? ? ? ? if action_str == "1":

? ? ? ? ? ? s_seq()

? ? ? ? elif action_str == "2":

? ? ? ? ? ? d_let()


? ? elif action_str == "0":


? ? ? ? print("\t\t\t歡迎再次使用【雙色球自選系統(tǒng)】")

? ? ? ? break


? ? else:

? ? ? ? print("\t\t\t您輸入的不正確請重新輸入!")


備忘3的評論 (共 條)

分享到微博請遵守國家法律
广昌县| 高尔夫| 南澳县| 尼木县| 云龙县| 武乡县| 尚志市| 五指山市| 陕西省| 阿图什市| 海淀区| 长泰县| 南江县| 永平县| 蕉岭县| 库伦旗| 余庆县| 曲靖市| 丹东市| 卓资县| 绵竹市| 灯塔市| 沈丘县| 蓬莱市| 堆龙德庆县| 芦山县| 伊通| 永定县| 高台县| 广饶县| 淮南市| 清徐县| 延津县| 嵊泗县| 出国| 应城市| 秀山| 武宁县| 青冈县| 五莲县| 施甸县|