package org.springblade.flow.engine.listener.common; import org.flowable.engine.delegate.DelegateExecution; import org.springframework.stereotype.Comp ...
分类:
其他好文 时间:
2021-05-24 01:47:35
阅读次数:
0
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 ...
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
# reduce()函数# 使用方法:导入模块from functools import reduce# reduce(功能函数,可迭代对象,初始值=None)# 例如:reduce(lambda x,y:x+y,num,100)# 功能:将整体数据合到一起,得到一个最终结果#实例1from fun ...
分类:
其他好文 时间:
2021-05-24 01:25:09
阅读次数:
0
一、random模块 1 import random 12 # 大于0且小于1之间的小数print(random.random()) 1 0.42866657593385415 12 # 大于等于1且小于等于3之间的整数print(random.randint(1, 3)) 1 3 12 # 大于等 ...
分类:
其他好文 时间:
2021-05-24 00:50:09
阅读次数:
0
一、datetime模块 12 # datetime模块可以看成是时间加减的模块import datetime 12 # 返回当前时间print(datetime.datetime.now()) 1 2019-03-07 16:22:14.544130 1 print(datetime.date.f ...
分类:
其他好文 时间:
2021-05-24 00:49:07
阅读次数:
0
pytest参数化与数据驱动实现—— 1. 使用@pytest.mark.parametrize进行参数化和数据驱动 import pytest @pytest.mark.parametrize("test_input, expected", [('3+5', 8), ('1+5', 6), ('3 ...
分类:
其他好文 时间:
2021-05-24 00:42:51
阅读次数:
0
package com.java1234.util; import java.sql.Connection; import java.sql.DriverManager; public class DbUtil { private String dbUrl="jdbc:mysql://localho ...
分类:
数据库 时间:
2021-05-24 00:29: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
安装consul 下载地址 https://releases.hashicorp.com/consul/,将下载的consul.exe 文件目录添加到系统环境中,然后执行 consul agent -dev 启动,默认监听8500端口,可以访问 http://127.0.0.1:8500/ 进行查看 ...
分类:
其他好文 时间:
2021-05-24 00:13:10
阅读次数:
0