1 # -*- coding:utf-8 -*- 2 #weather_api 3 import requests 4 import json 5 ''' 6 东城区:110101 7 西城区:110102 8 朝阳区:110105 9 丰台区:110106 10 ''' 11 12 def Wea ...
1. 定义:用于在数组的末端添加一个或多个元素,并返回添加新元素后的数组长度。注意,该方法会改变原数组 2. 代码使用push方法,往数组中添加了四个成员 1 var arr = []; 2 console.log(arr.push(1)); //1 3 console.log(arr.push(' ...
分类:
其他好文 时间:
2021-05-24 01:39:52
阅读次数:
0
docker inspect --format='{{.Name}} - {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker ps -q) ...
分类:
其他好文 时间:
2021-05-24 01:36:40
阅读次数:
0
import easygui import os path = easygui.fileopenbox()#path是打开的文件的全路径 if path:#如果选择打开文件,没有选择取消 b = os.path.splitext(path)#把打开的文件的全路径分割成文件名和后缀名 c = [b[0 ...
分类:
其他好文 时间:
2021-05-24 01:31:34
阅读次数:
0
* { margin: 0; padding: 0; font-family: "Poppins",sans-serif; } body { display: flex; justify-content: center; align-items: center; background:rgb(76, ...
分类:
Web程序 时间:
2021-05-24 01:25:27
阅读次数:
0
# reduce()函数# 使用方法:导入模块from functools import reduce# reduce(功能函数,可迭代对象,初始值=None)# 例如:reduce(lambda x,y:x+y,num,100)# 功能:将整体数据合到一起,得到一个最终结果#实例1from fun ...
分类:
其他好文 时间:
2021-05-24 01:25:09
阅读次数:
0
--表数据查询 --表的基本查询 --数据查询的基本框架 --select(显示哪些列) - from(从哪一张表) - where(根据啥条件) --选择查询 --基本查询的格式:select 属性列表 from 数据表名 --说明:select语句后面可以是字段名,也可以是字段和常数组成的算术表 ...
分类:
其他好文 时间:
2021-05-24 00:52:55
阅读次数:
0
@RequestMapping(value = "/downfile", method = RequestMethod.GET) public void downfile(HttpServletRequest request, HttpServletResponse response) { try ...
分类:
编程语言 时间:
2021-05-24 00:28:07
阅读次数:
0
''' ! Creat Date: 2021-5-4 ! Author: xdd1997 ! Email: xdd2026@qq.com ''' import re # 输入文件 # 接口 filePath = 'D:\\Desktop\\uu.lis' 也可以 filePath = r'D:\De ...
分类:
编程语言 时间:
2021-05-24 00:13:27
阅读次数:
0
分页查询 ★ /* 应用场景:当要显示的数据,一页显示不全,需要分页提交sql请求 语法: select 查询列表 from 表 【join type join 表2 on 连接条件 where 筛选条件 group by 分组字段 having 分组后的筛选 order by 排序的字段】 lim ...
分类:
数据库 时间:
2021-05-23 23:31:34
阅读次数:
0