package cn.rushangw.lesson01;import java.awt.*;public class TestBorderLayout { public static void main(String[] args) { Frame frame = new Frame("TestB ...
分类:
其他好文 时间:
2021-05-24 13:01:24
阅读次数:
0
package cn.rushangw.lesson01;import sun.awt.WindowClosingListener;import java.awt.*;import java.awt.event.WindowAdapter;import java.awt.event.WindowEv ...
分类:
其他好文 时间:
2021-05-24 12:52:46
阅读次数:
0
import turtle turtle.color("purple","yellow") turtle.speed(1) turtle.fd(100) turtle.right(60) turtle.fd(100) turtle.right(60) turtle.fd(100) turtle.ri ...
分类:
编程语言 时间:
2021-05-24 12:48:24
阅读次数:
0
import turtle turtle.width(20) turtle.color("red") turtle.circle(50) turtle.penup() turtle.goto(150,0) turtle.pendown() turtle.width(20) turtle.color( ...
分类:
其他好文 时间:
2021-05-24 12:47:05
阅读次数:
0
import turtle import math #先定义4个坐标 x1,y1=100,100 x2,y2=100,-100 x3,y3=-100,-100 x4,y4=-100,100 #然后画折线 turtle.penup() turtle.goto(x1,y1) turtle.pendown ...
分类:
编程语言 时间:
2021-05-24 12:46:21
阅读次数:
0
一、基本介绍 数组可以存放多个同一类型数据,数组也是一种数据类型,在Go中,数组是值类型。 二、数组的定义 var 数组名 [数组大小] 数据类型 例子: var a [3] int 三、数组的内存布局 package main import ( "fmt" ) func main() { var ...
分类:
编程语言 时间:
2021-05-24 12:23:34
阅读次数:
0
//此时是等价的 exports.name = 'xxx' module.exports.sex = '男' //此时把module.export指向的对象改变,以module.exports为准 module.exports = { id:'1', girlfriend:{ name:'yyy' ...
分类:
其他好文 时间:
2021-05-24 12:21:09
阅读次数:
0
由于多线程爬取数据比单线程的效率要高,尤其对于爬取数据量大的情况,效果更好,所以这次采用多线程进行爬取。具体代码和流程如下: import math import re from concurrent.futures import ThreadPoolExecutor import requests ...
分类:
编程语言 时间:
2021-05-24 12:04:44
阅读次数:
0
代码: 1 import time 2 import traceback 3 import requests 4 from lxml import etree 5 import re 6 from bs4 import BeautifulSoup 7 from lxml.html.diff impo ...
分类:
数据库 时间:
2021-05-24 12:00:17
阅读次数:
0
import java.math.BigDecimal; public class Demo { public static void main(String[] args) { //这里尽量使用 BigDecimal(String str)的构造器 BigDecimal a = new BigDe ...
分类:
其他好文 时间:
2021-05-24 11:33:34
阅读次数:
0