2023年1月9日
摘要: #导入模块 import datetime,time,tkinter #新建一个窗口 windows=tkinter.Tk() #给窗口定义标题 windows.title('简易计算器') #给窗口定义尺寸 windows.geometry('500x600') # 逻辑事件 content='' 阅读全文
posted @ 2023-01-09 21:16 至清无物 阅读(105) 评论(0) 推荐(0) 编辑
摘要: #题目:纸厚0.08mm,折几次可以达到珠穆朗玛峰8848.13米的高度 m_height=8848.13*1000 z_height=oldz_height=0.08 #计数器 count=0 #利用循环方法1: while z_height<m_height: z_height*=2 count 阅读全文
posted @ 2023-01-09 16:33 至清无物 阅读(261) 评论(0) 推荐(0) 编辑
摘要: #母鸡三元一只,公鸡一元一只,小鸡0.5元一只,一百元全部买鸡,有多少种不同买法,分别是什么? count=0 for m_j in range(1,100//3): for g_j in range(1,100): for x_j in range(2,101,2): if(m_j+g_j+x_j 阅读全文
posted @ 2023-01-09 16:31 至清无物 阅读(577) 评论(0) 推荐(0) 编辑
摘要: import tkinter,random,tkinter.messagebox #创建窗口 window=tkinter.Tk() #设置窗口大小 window.geometry('500x500') #设置窗口标题 window.title('猜字游戏界面') # 数据逻辑 good_price 阅读全文
posted @ 2023-01-09 16:28 至清无物 阅读(493) 评论(0) 推荐(0) 编辑