• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
汤圆喵喵
博客园    首页    新随笔    联系   管理    订阅  订阅
1 2 下一页
2020年12月13日
爬虫作业
摘要: (2)请用requests库的get()函数访问如下一个网站20次,打印返回状态,text()内容,计算text()属性和content属性所返回网页内容的长度。(不同学号选做如下网页,必做及格)‪‬‪‬‪‬‪‬‪‬‮‬‫‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‫‬‪‬‪‬ 阅读全文
posted @ 2020-12-13 23:15 汤圆喵喵 阅读(76) 评论(0) 推荐(0)
2020年11月21日
numpy、scipy、pandas、matplotlib 读书笔记
摘要: numpy 读书笔记import numpy as np print(np.__version__)#打印版本 a = np.zeros([3,2]) b = list(range(0,27)) b = np.array(b) b = b.reshape([3,3,3]) print("轴:",b. 阅读全文
posted @ 2020-11-21 20:15 汤圆喵喵 阅读(115) 评论(0) 推荐(0)
ym球
摘要: # 体育竞技 from random import random def printInfo(): print("模拟两个选手A和B的羽毛球竞技比赛") print("程序需要两个选手的能力值0-1") print("规则:三局两胜--21分制") print("作者:37李长宇") def get 阅读全文
posted @ 2020-11-21 19:49 汤圆喵喵 阅读(27) 评论(0) 推荐(0)
2020年11月15日
jieba 分词 聊斋
摘要: import jieba f = open(r'C:\liaozhai.txt', mode="r", encoding='gbk') txt=f.read() words = jieba.lcut(txt) counts = {} for word in words: if len(word) = 阅读全文
posted @ 2020-11-15 11:59 汤圆喵喵 阅读(28) 评论(0) 推荐(0)
jieba 分词 聊斋
摘要: import io import jieba txt = io.open("liaozhai.txt", "r", encoding='utf-8').read() words = jieba.lcut(txt) counts = {} for word in words: if len(word) 阅读全文
posted @ 2020-11-15 10:19 汤圆喵喵 阅读(29) 评论(0) 推荐(0)
2020年11月14日
成绩
摘要: 阅读全文
posted @ 2020-11-14 08:25 汤圆喵喵 阅读(26) 评论(0) 推荐(0)
2020年10月17日
七段数码管绘制(时、分、秒)
摘要: import turtle as t import time def popspace(): #单管间隔 t.penup() t.fd(4) def popline(draw): #画数码管 popspace() t.pendown() if draw else t.penup() t.fd(40) 阅读全文
posted @ 2020-10-17 18:48 汤圆喵喵 阅读(367) 评论(0) 推荐(0)
2020年10月1日
用phthon计算圆周率
摘要: from math import sqrt from tqdm import tqdm #导入进度条 from random import random #导入随机函数 import time #导入时间包 DARTS=100 hits=0.0 t=time.perf_counter() # tim 阅读全文
posted @ 2020-10-01 23:56 汤圆喵喵 阅读(130) 评论(0) 推荐(0)
2020年9月21日
学习python所得
摘要: 安装 阅读全文
posted @ 2020-09-21 20:04 汤圆喵喵 阅读(31) 评论(0) 推荐(0)
2020年9月15日
叠加的等边三角形
摘要: import turtle turtle.screensize(800,800,"red") turtle.setup(800,500,100) turtle.penup() turtle.fd(-100) turtle.pendown() turtle.pensize(7) turtle.penc 阅读全文
posted @ 2020-09-15 19:23 汤圆喵喵 阅读(147) 评论(0) 推荐(0)
1 2 下一页
博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3