• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






wwinsley

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2020年12月13日

爬虫 搜狗
摘要: 用requests库的get()函数访问必应搜狗主页20次,打印返回状态,text内容,并且计算text()属性和content属性返回网页内容的长度。关于requests库的内容可戳以下链接: https://www.cnblogs.com/deng11/p/12863994.html impor 阅读全文
posted @ 2020-12-13 22:38 wwinsley 阅读(89) 评论(0) 推荐(0)
 

2020年11月22日

读书报告
摘要: import numpy as np ls1 = [10, 42, 0, -17, 30] nd1 =np.array(ls1) print(nd1) print(type(nd1)) import scipy import numpy as np from scipy import linalg 阅读全文
posted @ 2020-11-22 16:35 wwinsley 阅读(64) 评论(0) 推荐(0)
 
比赛模拟
摘要: from random import random def printInfo(): # 打印程序介绍信息 print('这个程序模拟两个选手A和B的某种竞技比赛') print('程序运行需要A和B的能力值(以0到1之间的小数表示)') def getInputs(): # 获得程序运行参数 a 阅读全文
posted @ 2020-11-22 16:29 wwinsley 阅读(54) 评论(0) 推荐(0)
 

2020年11月13日

成绩单
摘要: 阅读全文
posted @ 2020-11-13 13:35 wwinsley 阅读(42) 评论(0) 推荐(0)
 
jieba红楼梦
摘要: import jieba excludes = {"什么","一个","我们","那里","你们","如今","说道","知道","起来","姑娘","这里","出来","他们","众人","自己", "一面","只见","怎么",&quo 阅读全文
posted @ 2020-11-13 13:24 wwinsley 阅读(93) 评论(0) 推荐(0)
 

2020年10月26日

python第六周作业
摘要: 在终端输出如下信息,(两种以上方法) ‪‬‪‬‪‬‪‬‪‬‮‬‫‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‭练习一:在终端输出如下信息‪‬‪‬‪‬‪‬‪‬‮‬‫‬‪‬‪‬‪‬‪‬‪ 阅读全文
posted @ 2020-10-26 19:59 wwinsley 阅读(102) 评论(0) 推荐(0)
 
第二周python基本图形绘制
摘要: 1、蟒蛇绘制 #PythonDraw.py import turtle turtle.setup(650, 350, 200, 200) turtle.penup() turtle.fd(-250) turtle.pendown() turtle.pensize(25) turtle.pencolo 阅读全文
posted @ 2020-10-26 18:54 wwinsley 阅读(125) 评论(0) 推荐(0)
 

2020年10月18日

7段数码管绘制
摘要: import time import turtle as tt def drawGap(): tt.penup() tt.fd(5) def drawLine(draw): drawGap() if(draw): tt.pendown() else: tt.penup() tt.fd(50) dra 阅读全文
posted @ 2020-10-18 22:03 wwinsley 阅读(115) 评论(0) 推荐(0)
 

2020年10月14日

七段数码管绘制
摘要: import turtle,datetime#引用 def drawGap():#绘制数码管间隔 turtle.penup() turtle.fd(5) def drawLine(draw):#绘制单段数码管 turtle.pendown() if draw else turtle.penup() 阅读全文
posted @ 2020-10-14 16:52 wwinsley 阅读(169) 评论(0) 推荐(0)
 

2020年10月11日

用python计算圆周率PI
摘要: def PI(n): pi=0 for k in range(n): pi += 1/pow(16,k)*(4/(8*k+1)-2/(8*k+4)-1/(8*k+5)-1/(8*k+6)) return pi import time scale = 20 print("执行开始".center(sc 阅读全文
posted @ 2020-10-11 08:45 wwinsley 阅读(112) 评论(0) 推荐(0)
 
下一页