会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
dragon-
博客园
首页
新随笔
联系
订阅
管理
2024年4月18日
https://blog.csdn.net/qq_64314976/article/details/125843147
摘要: import java.awt.FlowLayout;import java.awt.GridLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.Button
阅读全文
posted @ 2024-04-18 14:55 一只蜗牛hhhh
阅读(34)
评论(0)
推荐(0)
2023年12月28日
爬虫作业
摘要: (2)请用requests库的get()函数访问如下一个网站20次,打印返回状态,text()内容,计算text()属性和content属性所返回网页内容的长度。(不同学号选做如下网页,必做及格)
阅读全文
posted @ 2023-12-28 23:40 一只蜗牛hhhh
阅读(29)
评论(0)
推荐(0)
读书笔记
摘要: np.array():创建numpy数组 np.zeros():返回全0数组 np.ones():返回全1数组 np.arange():创建等差数列数组 np.linspace():创建等间隔数列数组 np.reshape():改变数组形状 数组运算 np.add():加法运算 np.subtrac
阅读全文
posted @ 2023-12-28 23:31 一只蜗牛hhhh
阅读(20)
评论(0)
推荐(0)
排球体育规则
摘要: print("05")from random import randomdef printInfo(): # 打印程序介绍信息 print('这个程序模拟两个选手A和B的某种竞技比赛') print('程序运行需要A和B的能力值(以0到1之间的小数表示)')def getInputs(): # 获得
阅读全文
posted @ 2023-12-28 23:11 一只蜗牛hhhh
阅读(29)
评论(0)
推荐(0)
fly bird
摘要: import pygameimport sysimport randomfrom PIL import Image # 素材参考地址:https://www.aigei.com/s?q=flappy+bird&type=2dprint("学号后两位05") class Bird(object): "
阅读全文
posted @ 2023-12-28 23:02 一只蜗牛hhhh
阅读(63)
评论(0)
推荐(0)
jieba 统计红楼梦人物出现次数
摘要: import jiebawith open('红楼梦.txt','r',encoding='utf-8')as f: txt = f.read() words = jieba.lcut(txt) counts={} for word in words: if len(word) == 1: cont
阅读全文
posted @ 2023-12-28 21:55 一只蜗牛hhhh
阅读(196)
评论(0)
推荐(0)
2023年11月23日
dengguan
摘要: import turtle, datetime def drawGap(): # 绘制数码管间隔turtle.penup()turtle.fd(5) def drawLine(draw): # 绘制单段数码管drawGap()turtle.pendown() if draw else turtle.
阅读全文
posted @ 2023-11-23 17:49 一只蜗牛hhhh
阅读(46)
评论(0)
推荐(0)
2023年11月1日
第二章练习
摘要: print("超市抹零:") a=float(input('扫描的第一个商品价格:'))b=float(input('扫描的第二个商品价格:'))c=float(input('扫描的第三个商品价格:'))d=a+b+cprint('总计:',int(d))print("3105") python =
阅读全文
posted @ 2023-11-01 00:30 一只蜗牛hhhh
阅读(27)
评论(0)
推荐(0)
2023年10月31日
求pi
摘要: import randomS =20e6N = 0for i in range(int(S)):x = random.random()y = random.random()d = (x-0.5)**2+(y-0.5)**2if d<=0.5**2: N+=1else:passPI = 4*N/Spr
阅读全文
posted @ 2023-10-31 23:44 一只蜗牛hhhh
阅读(22)
评论(0)
推荐(0)
公告