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






洋洋洋洋洋洋仔

 
 

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

2020年12月13日

爬虫作业
摘要: 首先是谷歌主页的爬取 from pip._vendor import requests print('访问谷歌网站 获取Response对象') r = requests.get("http://www.google.cn") x = 1 while x <= 20: print('第' + str 阅读全文
posted @ 2020-12-13 11:43 洋洋洋洋洋洋仔 阅读(66) 评论(0) 推荐(0)
 

2020年11月15日

python中jieba分词关于红楼梦出现的高频词
摘要: import jieba excludes = {"什么","一个","我们","那里","你们","如今","说道","知道","起来","姑娘","这里","出来","他们","众人","自己", "一面","只见","怎么",&quo 阅读全文
posted @ 2020-11-15 09:31 洋洋洋洋洋洋仔 阅读(278) 评论(0) 推荐(0)
 

2020年10月18日

python中7段数码管绘制
摘要: import turtle, time def drawGap(): turtle.speed(0) # 设置画笔速度 “fastest”:0 "fast":10 "normal":6 "slow":3 "slowest":1 # turtle.Turtle().screen.delay(0) #画 阅读全文
posted @ 2020-10-18 21:43 洋洋洋洋洋洋仔 阅读(216) 评论(0) 推荐(0)
 

2020年10月11日

python中计算圆周率
摘要: from tqdm import trange pi = 0 for i in trange(1000000000): if i%2 == 0: pi += 1/(2*i+1) else: pi -= 1/(2*i+1) pi = pi*4 print(pi) 阅读全文
posted @ 2020-10-11 10:30 洋洋洋洋洋洋仔 阅读(77) 评论(0) 推荐(0)
 

2020年9月15日

python中叠加三角形的画法
摘要: import turtle as t t.setup(600, 600, None,None) t.pu() t.fd(-120) t.pensize(5) t.width(5) t.pencolor("darkgreen") t.pd() t.fd(250) t.seth(120) t.penco 阅读全文
posted @ 2020-09-15 21:06 洋洋洋洋洋洋仔 阅读(1900) 评论(0) 推荐(0)
 
python中六角形的画法
摘要: mport turtle turtle.fillcolor("red") turtle.begin_fill() turtle.left(30) turtle.forward(144) turtle.right(60) turtle.forward(144) turtle.right(60) tur 阅读全文
posted @ 2020-09-15 20:59 洋洋洋洋洋洋仔 阅读(452) 评论(0) 推荐(0)
 
python中五角星的简单画法
摘要: ********Stra5*********import turtle turtle.fillcolor("red") turtle.begin_fill() count=1 while count<=5: turtle.forward(100) turtle.right(144) count+=; 阅读全文
posted @ 2020-09-15 20:53 洋洋洋洋洋洋仔 阅读(300) 评论(0) 推荐(0)