日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > python >内容正文

python

python 福利彩票_使用Python买福彩,5个数字,20选5,有没买过

發布時間:2025/3/19 python 20 豆豆
生活随笔 收集整理的這篇文章主要介紹了 python 福利彩票_使用Python买福彩,5个数字,20选5,有没买过 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

import random,sys,os

num = random.sample(range(1,21),5)

print(num)

f=open("haha.txt","a+")

f.write(str(num)+"\n")

f.close()

person1 = int(input('請輸入你要買的數字:'))

person2 = int(input('請輸入你要買的數字:'))

person3 = int(input('請輸入你要買的數字:'))

person4 = int(input('請輸入你要買的數字:'))

person5 = int(input('請輸入你要買的數字:'))

if person1 > 20 or person2 > 20 or person3 > 20 or person4 > 20 or person5 > 20:

print("不能輸入大于20的數字")

sys.exit()

if person1 == person2 or person1 == person3 or person1 == person4 or person1 == person5 or person2 == person3 or person2 == person4 or person2 == person5 or person3 == person4 or person3 == person5 or person4 == person5:

print("不能購買重復的號碼")

sys.exit()

if person2 in num and person3 in num and person4 in num and person5 in num and person1 in num:

print("恭喜你,全中了,獎勵320元")

if person1 in num:

if person2 not in num and person3 not in num and person4 not in num and person5 not in num:

print("中了一個,很遺憾沒獎勵")

if person2 in num and person3 not in num and person4 not in num and person5 not in num:

print("中了兩個,很遺憾沒獎勵")

if person2 in num and person3 in num and person4 not in num and person5 not in num:

print("中三個,很遺憾沒獎勵")

if person2 in num and person3 in num and person4 in num and person5 not in num:

print("中四個,很遺憾沒獎勵")

if person2 in num:

if person1 not in num and person3 not in num and person4 not in num and person5 not in num:

print("中了一個,很遺憾沒獎勵")

if person1 in num and person3 not in num and person4 not in num and person5 not in num:

print("中了兩個,很遺憾沒獎勵")

if person1 in num and person3 in num and person4 not in num and person5 not in num:

print("中三個,很遺憾沒獎勵")

if person1 in num and person3 in num and person4 in num and person5 not in num:

print("中四個,很遺憾沒獎勵")

if person3 in num:

if person1 not in num and person2 not in num and person4 not in num and person5 not in num:

print("中了一個,很遺憾沒獎勵")

if person1 in num and person2 not in num and person4 not in num and person5 not in num:

print("中了兩個,很遺憾沒獎勵")

if person1 in num and person2 in num and person4 not in num and person5 not in num:

print("中三個,很遺憾沒獎勵")

if person1 in num and person2 in num and person4 in num and person5 not in num:

print("中四個,很遺憾沒獎勵")

if person4 in num:

if person1 not in num and person2 not in num and person3 not in num and person5 not in num:

print("中了一個,很遺憾沒獎勵")

if person1 in num and person2 not in num and person3 not in num and person5 not in num:

print("中了兩個,很遺憾沒獎勵")

if person1 in num and person2 in num and person3 not in num and person5 not in num:

print("中三個,很遺憾沒獎勵")

if person1 in num and person2 in num and person3 in num and person5 not in num:

print("中四個,很遺憾沒獎勵")

if person5 in num:

if person1 not in num and person2 not in num and person3 not in num and person4 not in num:

print("中了一個,很遺憾沒獎勵")

if person1 in num and person2 not in num and person3 not in num and person4 not in num:

print("中了兩個,很遺憾沒獎勵")

if person1 in num and person2 in num and person3 not in num and person4 not in num:

print("中三個,很遺憾沒獎勵")

if person1 in num and person2 in num and person3 in num and person4 not in num:

print("中四個,很遺憾沒獎勵")

if person1 not in num and person2 not in num and person3 not in num and person4 not in num and person5 not in num:

print("不好意思,一個都沒中,要加油哦")

總結

以上是生活随笔為你收集整理的python 福利彩票_使用Python买福彩,5个数字,20选5,有没买过的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。