摘要: 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>菜鸟教程(runoob.com)</title> 6 </head> 7 <body> 8 <h1>欢迎您的加入03</h1> 9 <p>有你想不到的意外哦!< 阅读全文
posted @ 2020-05-25 20:31 鯮 阅读(126) 评论(0) 推荐(0)
摘要: import requests from bs4 import BeautifulSoup import bs4 info=[] url ="http://www.zuihaodaxue.com/zuihaodaxuepaiming2018.html" try: r=requests.get(url 阅读全文
posted @ 2020-05-25 20:29 鯮 阅读(121) 评论(0) 推荐(0)
摘要: import requests def getHTMLText(url): try: r=requests.get(url,timeout=30) r.raise_for_status() r.encoding='utf-8' return r.text except: return "" url= 阅读全文
posted @ 2020-05-25 20:12 鯮 阅读(112) 评论(0) 推荐(0)
摘要: 学习笔记摘自https://blog.csdn.net/XiaoXIANGZI222/article/details/53084336 import numpy as np import matplotlib.pyplot as pltimport matplotlibmatplotlib.rcPa 阅读全文
posted @ 2020-05-06 17:17 鯮 阅读(119) 评论(0) 推荐(0)
摘要: from random import randomdef printIntro(): #打印程序介绍信息 print("19信计2班3号刘志远进行比赛分析结果:") print("这个程序模拟两个选手A和B的某种竞技比赛") print("程序运行需要A和B的能力值(以0到1之间的小数表示)")de 阅读全文
posted @ 2020-04-22 09:13 鯮 阅读(142) 评论(0) 推荐(0)
摘要: Image.open(filename) 根据参数加载图像文件 Image.new(mode, size, color) 根据给定参数创建一个新的图像 Image.open(StringIO.StringIO(buffer)) 从字符串中获取图像 Image.frombytes(mode, size 阅读全文
posted @ 2020-04-15 10:28 鯮 阅读(185) 评论(0) 推荐(0)
摘要: import turtle t = turtle.Pen() for x in range(360): t.forward(x) t.left(59) 阅读全文
posted @ 2020-03-25 15:17 鯮 阅读(119) 评论(0) 推荐(0)
摘要: s = input()t = ""for c in s: if 'a' <= c <= 'z': t += chr( ord('a') + ((ord(c)-ord('a')) + 3 )%26 ) elif 'A'<=c<='Z': t += chr( ord('A') + ((ord(c)-or 阅读全文
posted @ 2020-03-23 22:49 鯮 阅读(139) 评论(0) 推荐(0)
摘要: import turtle turtle.right(60) turtle.forward(200) turtle.right(120) turtle.forward(200) turtle.right(120) turtle.forward(200) turtle.penup() turtle.f 阅读全文
posted @ 2020-03-16 10:03 鯮 阅读(188) 评论(0) 推荐(0)
摘要: import turtleturtle.penup()turtle.fd(-100)turtle.pendown()turtle.pensize(5)turtle.left(30)turtle.forward(100)turtle.right(60)turtle.forward(100)turtle 阅读全文
posted @ 2020-03-16 09:58 鯮 阅读(377) 评论(0) 推荐(0)