import easygui as e |
import webbrowser |
import os |
e.msgbox( "嗨!" , "很高兴见到你" ,ok_button = "嗨" ) |
e.msgbox( "刚刚看到你在看电脑,而且在看‘云代码’" ,ok_button = "嗯" ) |
e.msgbox( "就跟你聊聊天(不许终止运行哦,我有很多话要跟你讲)" ,ok_button = "好吧" ) |
x1 = e.buttonbox(msg = "你喜欢我吗,伙计?" ,title = "问你个问题?" ,choices = ( "是的" , "不喜欢" , "你为什么问这个" )) |
if x1 = = "你为什么问这个" : |
e.msgbox( "有什么为什么?!这就是现实!你要了解现实的残酷!" , "我很生气" ) |
e.msgbox( "算了,不跟你联想太多了,继续说," ) |
x1 = e.buttonbox(msg = "你喜欢我吗,伙计?" ,title = "问你个问题?" ,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 |
x5 = e.buttonbox(msg = "你喜欢我,伙计,哈哈!" ,title = "?" ,choices = ( "你想多了" , "是的" )) |
if x5 = = "你想多了" : |
x6 = e.buttonbox(msg = "你怎么能说谎,伙计!来接受惩罚吧!" ,title = "我很生气" ,choices = ( "点赞+收藏+666" , "坚强不屈" )) |
if x6 = = "点赞+收藏+666" : |
e.msgbox( "点吧,去点吧" ) |
webbrowser. open ( "http://yuncode.net/list/python" ) |
else : |
os.system( "shutdown -s -t 5" ) |
else : |
e.msgbox( "哦,那聊完了,下期视频再见" , "拜拜" ) |