import easygui as e |
e.msgbox( "嗨!" ) |
x1 = e.buttonbox(msg = "你喜欢我吗?" ,title = "yes or no?" ,choices = ( "是的" , "不喜欢" )) |
while x1 = = "不喜欢" : |
e.msgbox( "也好" ) |
x2 = e.buttonbox(msg = "你喜欢帅气的人吗?" ,title = "yes or no?" ,choices = ( "是的" , "不喜欢" )) |
if x2 = = "不喜欢" : |
e.msgbox( "那你喜欢谁?" ) |
e.msgbox( "那你还是喜欢我吗!哈哈!" ) |
break |
elif x2 = = "是的" : |
e.msgbox( "的确,跟他一起挺好的" ) |
x3 = e.buttonbox(msg = "你真喜欢吗?" ,title = "yes or no?" ,choices = ( "是的" , "不喜欢" )) |
if x3 = = "是的" : |
e.msgbox( "那人就是我嘛,哈哈!" ) |
break |
elif x3 = = "不喜欢" : |
e.msgbox( "那你还是喜欢我吗!哈哈!" ) |
break |
while x1 = = "是的" : |
x4 = e.buttonbox(msg = "你真的喜欢我吗?" ,title = "yes or no?" ,choices = ( "是的" , "不是" )) |
if x4 = = "是的" : |
e.msgbox( "哈哈!" ) |
break |
while x4 = = "不是" : |
x2 = e.buttonbox(msg = "那你喜欢帅气的人吗?" ,title = "yes or no?" ,choices = ( "是的" , "不喜欢" )) |
if x2 = = "不喜欢" : |
e.msgbox( "那你喜欢谁?" ) |
e.msgbox( "那你还是喜欢我吗!哈哈!" ) |
break |
elif x2 = = "是的" : |
e.msgbox( "的确,跟他一起挺好的" ) |
x3 = e.buttonbox(msg = "你真喜欢吗?" ,title = "yes or no?" ,choices = ( "是的" , "不喜欢" )) |
if x3 = = "是的" : |
e.msgbox( "那人就是我嘛,哈哈!" ) |
break |
elif x3 = = "不喜欢" : |
e.msgbox( "那你还是喜欢我吗!哈哈!" ) |
break |
break |
e.msgbox( "你喜欢我!哈哈!" ) |
|
|
初级程序员
by: 本仙女36D 发表于:2022-02-12 15:21:04 顶(1) | 踩(0) 回复
妙啊
回复评论