import random
import time
import turtle
print(u"加载中.")
time.sleep(0.5)
print(u"加载中..")
time.sleep(0.5)
print(u"加载中...")
time.sleep(0.5)
print(u"加载中....")
time.sleep(0.5)
print(u"加载中.....")
time.sleep(0.5)
print(u"加载中......")
time.sleep(0.5)
while True:
print("你有","%.2f"%q)
time.sleep(1)
sb = input(u"你要干什么 A:工作 B:玩儿 C,投资")
sb1 = "A"
sb2 = "B"
sb3 = "C"
if sb == sb1:
print(u"工作中.")
time.sleep(1)
print(u"工作中..")
time.sleep(1)
print(u"工作中...")
time.sleep(1)
print(u"工作中....")
time.sleep(1)
print(u"工作中.....")
time.sleep(1)
print(u"工作中......")
time.sleep(1)
sbsb = random.randint(1,9)
sbsbsb = random.randint(1,9)
print(sbsb)
print("×")
sbsbsbsb = int(input(sbsbsb)) #
if sbsbsbsb == sbsb*sbsbsb: #
q += random.randint(5,30) #
if sb == sb2: #
for i in range(5): #
turtle.forward(100) #
turtle.left(360/5)
time.sleep(1)
time.sleep(1)
sbsb = random.randint(0,100)
if sbsb < 3:
print("你正在玩冲浪,突然,海啸来了。")
sb = input("你沉到了海底,被带到了美人鱼国。 A:快跑 B:去看看")
sb1 = "A"
sb2 = "B"
if sb == sb2:
sbsb = random.randint(1,100)
if sbsb < 50:
print("没想到,美人鱼抢走了10$!")
q -= 10
else:
print("美人鱼大奶ber带你去美人鱼国旅游。")
print("哇!好美!")
sbsb = random.randint(1,100)
if sbsb<30:
print("由于没氧气,$-150")
q -= 150
else:
print("$+300")
q += 300
elif sbsb < 5:
sb = input("突然一个UFO飞到你旁边,把你带走了。 A挣扎 B管他呢")
sb1 = "A"
sb2 = "B"
if sb == sb1:
sbsb = random.randint(0,40)
if sbsb<70:
print("你不仅没逃走,还被抓去研究了")
time.sleep(1)
print("研究中")
time.sleep(1)
print("可是他们给你了10太空币(相当于10×12=120元)")
q += 120
else:
print("你逃走了")
if sb == sb2:
sbsb = random.randint(1,10)
if sbsb < 5:
print("你被抓去研究了")
time.sleep(1)
print("研究中")
time.sleep(1)
print("可是他们给你了10太空币(相当于10×12=120元)")
q += 120
else:
print("他带你去那儿旅游。")
print("哇!!!太美了。$+300")
q+=300
elif sbsb < 10:
print("你发现了宝石!")
q+=100
elif sbsb < 13:
sb = input("突然发生了生化危机 A打死他们 B快跑!")
sb1 = "A"
sb2 = "B"
if sb == sb1:
print("打一号僵尸(战斗力250)还是二号僵尸(战斗力500)")
sb = input("A一号 B二号")
sb1 = "A"
sb2 = "B"
if sb1 == sb:
sbsb = random.randint(1,4)
if sbsb != 4:
print("你成功了 $+100")
q += 100
else:
print("你失败了")
q -= 120
if sb2 == sb:
sbsb = random.randint(1,4)
if sbsb == 4:
print("你成功了 $+200")
q += 200
else:
print("你失败了")
q -= 120
if sb == sb2:
sbsb = random.randint(1, 100)
if sbsb < 88:
print("你逃走了")
else:
print("你被打死了。")
q-=120.82
elif sbsb <20:
print("你发现了金子!")
q += 30.55
elif sbsb <30:
print("你发现了银子!")
q += 20.12
elif sbsb<35:
print("在回家的路上,出车祸了。 $-100")
q -= 100
q -= random.randint(10,10)
if sb == sb3:
print(u"投资中.")
time.sleep(0.5)
print(u"投资中..")
time.sleep(0.5)
print(u"投资中...")
time.sleep(0.5)
q -= 100
q += float(random.randint(5000,15000) / 100)