会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
好想看你的微笑
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
下一页
2021年12月12日
GUI程序设计--班级信息收集系
摘要: import pymysqlimport wxclass MyFrame(wx.Frame): def __init__(self,parent,id): wx.Frame.__init__(self,parent,id,title="学生信息收集",size=(400,300)) #创建面板 pa
阅读全文
posted @ 2021-12-12 11:57 好想看你的微笑
阅读(35)
评论(0)
推荐(0)
2021年11月24日
小明,10岁,男,上山去砍柴
摘要: name = ['小明', '老李']age = ['10岁', '90岁']sex = ['男']activity = ["上山去砍柴", "开车去东北", "最爱打游戏"] def func(a,b,c): print("{},{},{},{}".format(name[a],age[b],se
阅读全文
posted @ 2021-11-24 20:29 好想看你的微笑
阅读(83)
评论(0)
推荐(0)
2021年11月14日
jieba 分词 聊斋
摘要: import jieba# -*- coding: utf-8 -*- txt = open("D:\\python\\jieba\\聊斋志异.txt", "r", encoding='gb18030').read() words = jieba.lcut(txt) counts = {} for
阅读全文
posted @ 2021-11-14 11:31 好想看你的微笑
阅读(45)
评论(0)
推荐(0)
兵乒球比赛模拟python作业
摘要: from random import randomdef printIntro(): #打印程序介绍信息 print("20信计2班 甘发亮 50号 乒乓球比赛规则编程如下") print("这个程序模拟两个选手A和B的某种竞技比赛") print("程序运行需要A和B的能力值(以0到1之间的小数表
阅读全文
posted @ 2021-11-14 10:26 好想看你的微笑
阅读(194)
评论(0)
推荐(0)
2021年10月24日
7段数码管绘制 50号
摘要: import turtle as timport timedef popspace(): t.penup() t.fd(5)def popline(draw): popspace() t.pendown() if draw else t.penup() t.fd(40) popspace() t.r
阅读全文
posted @ 2021-10-24 11:26 好想看你的微笑
阅读(80)
评论(0)
推荐(0)
2021年10月17日
用python计算圆周率PI
摘要: import mathimport timescale=10print("执行开始")t=time.process_time()for i in range(scale+1): a,b='**'*i,'..'*(scale-i) c=(i/scale)*100 π=4*(4*math.atan(1/
阅读全文
posted @ 2021-10-17 11:55 好想看你的微笑
阅读(121)
评论(0)
推荐(0)
2021年9月13日
第二周作业(超市抹零,学生成绩,比较运算符大小,手机店打折活动,转换为记事本)
摘要: 03运行超市抹零结账行为 money_all = 56.75+ 72.91+ 88.50+ 26.37+ 68.51# 累加总计金额money_all_str = str(money_all)#转换为字符串print("商品总金额为:"+money_all_str)money_real = int(
阅读全文
posted @ 2021-09-13 21:47 好想看你的微笑
阅读(159)
评论(0)
推荐(0)
2021年9月12日
求矩形的面积
摘要: w=eval(input("请输入矩形的长:\n")) h=eval(input("请输入矩形的宽:\n")) area=round(w*h,2) print("矩形的面积是:"+str(area))
阅读全文
posted @ 2021-09-12 17:14 好想看你的微笑
阅读(175)
评论(0)
推荐(0)
2021年9月5日
学python的感悟
摘要: 要多尝试,虽然花了很多时间理解,但是最后的结总是快乐的,会继续听老师的话,完成作业
阅读全文
posted @ 2021-09-05 10:18 好想看你的微笑
阅读(41)
评论(0)
推荐(0)
hello 你好,世界
摘要: print("hello")
阅读全文
posted @ 2021-09-05 09:59 好想看你的微笑
阅读(13)
评论(0)
推荐(0)
上一页
1
2
3
下一页
公告