python的GUI框架tkinter,实现程序员的流氓式表白逻辑

导入依赖
'''导入依赖'''
import tkinter as tk
import tkinter.messagebox as msg
创建并隐藏根窗口
'''创建并隐藏根窗口'''
root_window = tk.Tk()
root_window.withdraw()
创建消息提示框
'''创建消息提示框'''
msg.showinfo('表白', '你听我说...')
msg.showinfo('表白', '我喜欢你很久了')

while True:
    a = msg.askyesnocancel('表白', '可以做我女朋友吗?', icon='question')
    if not a:
        msg.showerror('表白', '再考虑考虑...')
    else:
        break

while True:
    b = msg.askokcancel('表白', '今年一起回家,好吗?', icon='question')
    if not b:
        msg.showerror('表白', '再想想吧')
    else:
        break

msg.showinfo('表白', '太好了\n我好开心!')
msg.showinfo('表白', '不许告诉别人哦')

【粉丝福利】关注公众号,获取全套视频资料,喜欢小编点个 '关注' 吧!

file

【往期精彩】

● 探究python函数的不定长参数args与*kwargs

● 没有深思过的python冷知识你知道几个?

● python图片处理,自动生成gif动态图片

● python-redis 的操作手法,相当简单的redis数据存储方式!

● python 日期、时间处理,各种日期时间格式/字符串之间的相互转换究竟是怎样的?

● python 内置的数据计数器Counter相当nice

● 几十行代码实现python发送邮件与接收邮件

● 梳理python路线知识盲区,最全面、最详细的python知识体系框架思维导图终于出炉了!

● 没有开发工具,在服务器控制台如何进行python代码调试,高级编程pdb代码调试!

● python中的set集合,元素的CRUD处理,交集/差集/并集计算,不只是能去重!

● python编程:yaml文件应用支持,轻松读取可配置参数!

● python交互式动画可视化:构建动态的数据可视化工具-AnimatPlot!

● 灵魂发问:每个程序员心中都有自己的一套编码规范,你的代码别人能看懂吗?

● 编程技巧:掌握八个常用的数学运算与统计函数

本文由微信公众号【python 集中营】发布,更多精彩文章、视频资料即可领取!

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
FDUPES 是一个文件去重工具,可在指定的文件夹中标识出重复的文件。 使用方法: Usage: fdupes [options] DIRECTORY...  -r --recurse       for every directory given follow subdirectories                     encountered within  -R --recurse:      for each directory given after this option follow                     subdirectories encountered within  -s --symlinks      follow symlinks  -H --hardlinks     normally, when two or more files point to the same                     disk area they are treated as non-duplicates; this                     option will change this behavior  -n --noempty       exclude zero-length files from consideration  -f --omitfirst     omit the first file in each set of matches  -1 --sameline      list each set of matches on a single line  -S --size          show size of duplicate files  -q --quiet         hide progress indicator  -d --delete        prompt user for files to preserve and delete all                     others; important: under particular circumstances,                     data may be lost when using this option together                     with -s or --symlinks, or when specifying a                     particular directory more than once; refer to the                     fdupes documentation for additional information  -v --version       display fdupes version  -h --help          display this help message 标签:FDUPES

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Python 集中营

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值