上一页 1 2 3 4 5 6 7 8 9 ··· 21 下一页
摘要: import pymysql def client_database_dic(sql): print('数据库:', sql) # 打开数据库连接 db = pymysql.connect(host="127.0.0.1", user="root", password="123", db="orde 阅读全文
posted @ 2022-08-11 15:22 darling331 阅读(166) 评论(0) 推荐(0) 编辑
摘要: import datetime # 时间格式转换 ## 字符串格式转为时间格式 a = '2022-08-01 14:32:47' b = datetime.datetime.strptime(a, "%Y-%m-%d %H:%M:%S") print(b, type(b)) ## 时间格式转为字符 阅读全文
posted @ 2022-08-10 16:54 darling331 阅读(665) 评论(0) 推荐(0) 编辑
摘要: import java.util.Arrays; import java.util.List; public class Test { public static void main(String[] args) { List list = Arrays.asList("node", "java", 阅读全文
posted @ 2022-08-04 15:06 darling331 阅读(1826) 评论(0) 推荐(0) 编辑
摘要: 第一种整个对象进行去重处理 import java.time.format.DateTimeFormatter; import java.util.Collection; import java.util.stream.Collectors; import java.util.stream.Stre 阅读全文
posted @ 2022-08-04 14:51 darling331 阅读(5798) 评论(0) 推荐(1) 编辑
摘要: import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; public class Test { public static void main(String[] args) { // yyyy-MM-dd 阅读全文
posted @ 2022-08-04 14:46 darling331 阅读(159) 评论(0) 推荐(0) 编辑
摘要: header = { 'Content-Type': 'application/json;charset=UTF-8' } body = {'un': 'dafdas', 'pw': 'fasdasfa'} response = requests.post('http://www.safa.com/ 阅读全文
posted @ 2022-07-28 18:42 darling331 阅读(819) 评论(0) 推荐(0) 编辑
摘要: # -*- ecoding: utf-8 -*- # @ModuleName: test # @Funcation: # @Author: darling # @Time: 2022-07-28 15:29 import datetime import math import os import r 阅读全文
posted @ 2022-07-28 17:51 darling331 阅读(133) 评论(0) 推荐(0) 编辑
摘要: # -*- ecoding: utf-8 -*- # @ModuleName: test # @Funcation: # @Author: darling # @Time: 2022-07-28 15:29 import datetime import os import re import sys 阅读全文
posted @ 2022-07-28 16:43 darling331 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 需求背景 需求方,需要一批数据,统计当天的发货单量,组套单量,贴码单量,是属于三个不同维度的数据,且都是相互独立计算。 展示结果 | 时间 | 发货单量 | 组套单量 | 贴码单量 | 所属产品 | | | | | | | | 2022-05-17 | 21 | 20 | 15 | FF | | 2 阅读全文
posted @ 2022-07-28 15:12 darling331 阅读(84) 评论(0) 推荐(0) 编辑
摘要: pyCharm 访问步骤 File-->Settings-->File and Code Templates-->Python Script # -*- ecoding: utf-8 -*- # @ModuleName: ${NAME} # @Funcation: # @Author: darlin 阅读全文
posted @ 2022-07-28 15:08 darling331 阅读(102) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 21 下一页