import requests from bs4 import BeautifulSoup allUniv=[] def getHTMLText(url): try: r=requests.get(url,timeout=30) r.raise_for_status() r.encoding = ' ...
分类:
其他好文 时间:
2020-05-23 09:57:50
阅读次数:
495
public static class ChartHelper { /// /// Name:添加序列 /// Author:by boxuming 2019 04 28 13:59 /// /// 图表对象 /// 序列名称 /// 图表类型 /// 颜色 /// 标记点颜色 /// 是否显示数值 ...
分类:
其他好文 时间:
2020-05-23 00:06:24
阅读次数:
59
import math def f(n): if isinstance(n,int): for i in range(round(math.sqrt(n))): for j in range(round(math.sqrt(n))): for k in range(round(math.sqrt(n ...
分类:
其他好文 时间:
2020-05-22 22:54:34
阅读次数:
81
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< ...
分类:
Web程序 时间:
2020-05-22 19:07:33
阅读次数:
113
import random import numpy as np import matplotlib.pyplot as plt position = 0 walk = [position] steps = 100 x = [] y = [] for i in range(steps): step ...
分类:
其他好文 时间:
2020-05-22 19:02:54
阅读次数:
80
方法一:对每个因式判断是否是质数,不是继续分解,是则记录 """题目:将一个正整数分解质因数。例如:输入90,打印出90=2*3*3*5思路:质因数为此整数的因数并且这个因数是质数将整数分解因数,判断因数是否为质数,若是质数则存入列表,将另一个因数继续分解,直到无法再分解将因数列表判断是否为质数,若 ...
分类:
其他好文 时间:
2020-05-22 17:30:24
阅读次数:
78
Redis Persistence Redis provides a different range of persistence options: The RDB persistence performs point in time snapshots of your dataset at spe ...
分类:
数据库 时间:
2020-05-22 12:55:10
阅读次数:
70
import turtle turtle.bgcolor("black") turtle.pensize(2) sizeh = 1.2 def curve(): for ii in range(200): turtle.right(1) turtle.forward(1 * sizeh) turtl ...
分类:
编程语言 时间:
2020-05-21 23:40:25
阅读次数:
86