笨方法学python 习题36

习题36
python :3.9
这节让自己设计一个游戏,但是我好像设计的是对话,我会慢慢完善的


def Lisa():
    print ("You choose Lisa,Why?")
    print ("1.her songs")
    print ("2.her apperarence")
    print ("3.her  body")
    
    answer=input(">")
    
    if "1 "in answer :
        print (" You a true fun!")
    
    elif "2" in answer :
        print (" You are the Appearance Consortium!")
    
    elif "3" in answer :
        print (" You are an old ruffian!")
        
    else :
        print ("you're lose a chance!")
        
def JISCO():
    print ("you choose JISCO,but do you know everything about her ?")
    answer = input ("?")
    
    if "Yes" in answer:
        print ("you're a true fun ,so you can have dinner with her.")
        
    elif "No" in answer:
        print ("you're not really like her ,so you will die.")
    
    else :
        print ("you shouldn't do this.")

def JENNIE():
    print (" You choose JENNIE .DO you know where she's from ?")
    answer = input("?")
    
    if "Korea" in answer:
        print ("Looks like you knows something about she.")
        
    else :
        print ("you are a liar !")
        
def Rose():
    print ("You choose Rose.But she's Lise's wife. SO, what  should you do ? Flee or ?")
    answer = input ("?")
    
    if  "flee" in answer:
        print (" you can't flee .you 're died!")
        
    else :
        print (" whatever you do ,it's too late . you're died!")
        
def start():
    print ("you will meet BlackPink ,but you can only choose one person .So ,who do you choose ?")
    answer =input ("?")
    
    if answer == "Lisa":
        Lisa()
    elif answer ==" JENNIE":
        JENNIE()
    elif answer=="JISCO":
        JISCO()
    else :
        Rose()
        
start()

这是结果

PS C:\Users\78523\mybuff> python ex36.py
you will meet BlackPink ,but you can only choose one person .So ,who do you choose ?
?Lisa
You choose Lisa,Why?
1.her songs
2.her apperarence
3.her  body
>1
you're lose a chance!
PS C:\Users\78523\mybuff> python ex36.py
you will meet BlackPink ,but you can only choose one person .So ,who do you choose ?
?Rose
You choose Rose.But she's Lise's wife. SO, what  should you do ? Flee or ?
?Flee
 whatever you do ,it's too late . you're died!

如果有错请及时提醒我,谢谢

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值