turtle模块其中的函数有: 1)turtle.pensize():设置线条的粗细; 2)turtle.speed():设置绘制的速度,1-10,1最慢,10最快; 3)turtle.begin_fill():准备开始填充图形; 4)turtle.circle(50,steps=3):circle ...
分类:
其他好文 时间:
2020-07-03 15:19:48
阅读次数:
145
Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i has a g ...
分类:
其他好文 时间:
2020-07-03 12:57:57
阅读次数:
63
设备文件 一切皆文件:open(), read(), write(), close()设备文件:关联至一个设备驱动程序,进而能够跟与之对应硬件设备进行通信设备号码: 主设备号:major number, 标识设备类型 次设备号:minor number, 标识同一类型下的不同设备设备类型: 块设备: ...
分类:
其他好文 时间:
2020-07-03 12:55:49
阅读次数:
69
Maximum Subarray (E) 题目 Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and retur ...
分类:
其他好文 时间:
2020-07-03 09:14:00
阅读次数:
76
# translate words through youdao.com // discription about the code # the problem is the form data of youdao webpage has been coded # import necessary ...
分类:
编程语言 时间:
2020-07-03 01:19:17
阅读次数:
120
方式一: SavaAsTable 用法: df.write.mode(SaveMode.Overwrite).insertInto(table) 方式二: InsertInto 用法: df.write.mode(SaveMode.Overwrite).saveAsTable(table) 两种方式 ...
分类:
其他好文 时间:
2020-07-03 01:10:09
阅读次数:
152
GMV指标获取的全调度流程 import.job文件,第一步,从mysql导入数据 type=command do_date=${dt} command=/home/atguigu/bin/sqoop_import.sh all ${do_date} ods.job文件 type=command d ...
分类:
其他好文 时间:
2020-07-03 01:04:27
阅读次数:
73
在服务器消息推送场景中,解决方案无外乎浏览器定时询问服务器是否有新数据,另外一种则是服务器在有新数据的时候主动推送给浏览器。大概有如下几种方案: 1. 短轮询 Ajax短轮询是较常见和简单的方式。前端定时向服务端发送请求获取数据。 优点: 实现简单 缺点: 有延迟,延迟度与发送请求的间隔正相关 频繁 ...
分类:
其他好文 时间:
2020-07-03 00:50:14
阅读次数:
55
数据读写有两种方式: 1、直接读写。案例 import openpyxl def write_excel(): f = openpyxl.Workbook() # 创建工作簿 # sheet1 = f.create_sheet() print("sheet names:", f.sheetnames ...
分类:
其他好文 时间:
2020-07-02 23:21:51
阅读次数:
106
create directory mydata as '逻辑目录路径'; 例如: create directory mydata as '/data/oracle/oradata/mydata'; grant read,write on directory mydata to public sele ...
分类:
其他好文 时间:
2020-07-02 16:41:40
阅读次数:
51