摘要:
from selenium import webdriver from selenium.webdriver.common.by import By import time option = webdriver.ChromeOptions() option.add_experimental_opti
阅读全文
posted @ 2022-04-02 16:37
CrossPython
阅读(54)
推荐(0)
摘要:
import requestsimport seleniumfrom selenium import webdriverfrom selenium.webdriver.common.by import By option = webdriver.ChromeOptions()option.add_e
阅读全文
posted @ 2022-04-01 17:05
CrossPython
阅读(463)
推荐(0)
摘要:
查看chrome安装目录:C:\Users\***\AppData\Local\Google\Chrome\Application 命令行进入安装目录执行:chrome.exe --remote-debugging-port=9180 --user-data-dir="D:\selenum_temp
阅读全文
posted @ 2022-04-01 16:34
CrossPython
阅读(417)
推荐(0)
摘要:
import win32com.clientscheduler = win32com.client.Dispatch('Schedule.Service')scheduler.Connect()folders = scheduler.GetFolder('\\')task = folders.Get
阅读全文
posted @ 2022-03-27 09:56
CrossPython
阅读(63)
推荐(0)
摘要:
Python check for Completed and failed Task Windows scheduler 有谁知道我可以查看的方式或资源来检查任务计划程序中所有Windows任务的状态? 我想看看是否看到任务失败或成功。 我想在Python中做到这一点。 我已经看过一些使用win32
阅读全文
posted @ 2022-03-26 22:50
CrossPython
阅读(602)
推荐(0)
摘要:
import win32com.client computer_name = "" #leave all blank for current computer, current usercomputer_username = ""computer_userdomain = ""computer_pa
阅读全文
posted @ 2022-03-26 22:49
CrossPython
阅读(342)
推荐(0)
摘要:
session.auth = HttpNtlmAuth(self.credential, self.password, session) from requests_ntlm import HttpNtlmAuth a = requests.get(url=url, data=data, heade
阅读全文
posted @ 2022-03-26 11:04
CrossPython
阅读(70)
推荐(0)
摘要:
import poplib import sys from importlib import reload from email.parser import Parser from email.parser import BytesParser from email.header import de
阅读全文
posted @ 2022-03-23 23:21
CrossPython
阅读(37)
推荐(0)
posted @ 2022-03-22 09:50
CrossPython
阅读(63)
推荐(0)
摘要:
from pdfminer.pdfparser import PDFParser from pdfminer.pdfparser import PDFParser,PDFDocument from pdfminer.pdfinterp import PDFResourceManager, PDFPa
阅读全文
posted @ 2022-03-04 11:39
CrossPython
阅读(109)
推荐(0)
摘要:
select * from sqlserver, convert(date, 23) => YYYY-MM-DD pandas convert to date, drop time part, df2['ym1'] = pd.to_datetime(df2['ym']).dt.date
阅读全文
posted @ 2022-02-28 17:06
CrossPython
阅读(35)
推荐(0)
摘要:
Public Sub getMyGroup() On Error Resume Next intRow = 18 intCol = 4 On Error Resume Next Set objADSysInfo = CreateObject("ADSystemInfo") strUser = obj
阅读全文
posted @ 2022-02-18 11:15
CrossPython
阅读(48)
推荐(0)
posted @ 2022-02-08 21:25
CrossPython
阅读(38)
推荐(0)
摘要:
资源:内存区块。不同的内存区块位置和大小就是不同的资源。 strlet a = "xxx".to_string(); 含义:a绑定到字符串资源A上,拥有资源A的所有权 let mut a = "xxx".to_string(); 含义:a绑定到字符串资源A上,拥有资源A的所有权,同时a还可绑定到新的
阅读全文
posted @ 2022-02-03 13:09
CrossPython
阅读(404)
推荐(0)
摘要:
1.设置settings.py DEBUG = False ALLOWED_HOSTS = ["*"] ... STATIC_ROOT = os.path.join(BASE_DIR, 'static') STATIC_URL = '/static/' 2.修改项目的urls.py from dja
阅读全文
posted @ 2022-02-01 22:53
CrossPython
阅读(943)
推荐(0)
摘要:
address_book = ['receiver@test.cn'] msg = MIMEMultipart() sender = 'sender@sender.cn' subject = "My subject2222222222222" body = "This is my email bod
阅读全文
posted @ 2022-01-27 18:48
CrossPython
阅读(34)
推荐(0)
摘要:
Row( mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center, children: [ Text('是否内部移库? ->'), Builder( builder: (Bu
阅读全文
posted @ 2022-01-23 19:23
CrossPython
阅读(325)
推荐(0)
摘要:
https://www.jianshu.com/p/3b7b1b1d3d7d 出现问题: 在Android真机调试时会出现没有网络权限的情况; 解决办法: 在AndroidManifest.xml 中添加 <uses-permission android:name="android.permissi
阅读全文
posted @ 2022-01-23 10:23
CrossPython
阅读(2052)
推荐(0)
摘要:
import 'package:flutter/material.dart'; void main() { runApp(HomePage()); } class HomePage extends StatelessWidget{ @override Widget build(BuildContex
阅读全文
posted @ 2022-01-19 21:24
CrossPython
阅读(350)
推荐(0)
摘要:
import 'package:flutter/material.dart'; void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { @override Widget build(BuildContext con
阅读全文
posted @ 2022-01-19 20:34
CrossPython
阅读(188)
推荐(0)
摘要:
from exchangelib import DELEGATE, Account, Credentials, Message, Mailbox, HTMLBody def Email(to, subject, body): creds = Credentials( username='a@live
阅读全文
posted @ 2022-01-13 08:52
CrossPython
阅读(93)
推荐(0)
摘要:
使用命令pg_ctl.exe register -N “pgsql” -D “C:\Program Files\PostgreSQL\12\data” 将postgresql注册为服务执行net start pgsql 启动服务pgsql连接默认用户名为本机系统用户名 密码任意 即可使用工具连接po
阅读全文
posted @ 2022-01-11 16:10
CrossPython
阅读(3847)
推荐(0)
摘要:
I have below code in flutter. In initialRoute: attribute, it needs to call isLoggedIn() method which is an async function. I got an error saying I nee
阅读全文
posted @ 2022-01-09 21:10
CrossPython
阅读(42)
推荐(0)
摘要:
question: Let's assume that an initialization of MyComponent in Dart requires sending an HttpRequest to the server. Is it possible to construct an obj
阅读全文
posted @ 2022-01-09 13:24
CrossPython
阅读(561)
推荐(0)
摘要:
现代手机屏幕尺寸各不相同,导致我们平时写布局的时候会在个不同的移动设备上显示的效果不同。 为了达到一套代码所有手机体验一致效果,需要做尺寸上的适配。 适配方案: 计算公式:实际尺寸 = UI尺寸 * 设备宽度/设计图宽度 1px方案 : 1px = 1 / 设备像素比 实现代码如下(以750设计图为
阅读全文
posted @ 2022-01-08 18:33
CrossPython
阅读(2149)
推荐(0)
摘要:
#include <stdio.h> #include <stdbool.h> void PrintAll(int a[], int nBegin, int nEnd, int nCount, char* szPre){ if(nCount==1){ for(int i=nBegin; i<=nEn
阅读全文
posted @ 2021-11-15 20:05
CrossPython
阅读(165)
推荐(0)
摘要:
//改变数组长度 #include <iostream> using namespace std; // #ifndef CHANGELENGTH1D_H #define CHANGELENGTH1D_H #include<stdexcept> #include<algorithm> templat
阅读全文
posted @ 2021-11-06 22:17
CrossPython
阅读(126)
推荐(0)
摘要:
select a.guigename,a.thisdayguigeprice,a.createdate from dailystandardguigeprice as a inner join (select guigename,max(createdate) as mcreatedate from
阅读全文
posted @ 2021-10-12 16:22
CrossPython
阅读(19)
推荐(0)
摘要:
Microsoft IIS creates something called AppPool. By default you will have a user IIS AppPool\DefaultAppPool. That user needs to have permissions to you
阅读全文
posted @ 2021-09-28 21:08
CrossPython
阅读(44)
推荐(0)
摘要:
views.py中:定义一个global_settings函数,先把全局变量都引入过来,然后再返回:def global_setting(request):#注意有request参数 SITE_DESC = settings.SITE_DESC SITE_NAME = settings.SITE_N
阅读全文
posted @ 2021-09-28 17:42
CrossPython
阅读(162)
推荐(0)
摘要:
<a href="{{url_for('test')}}">我是测试</a> <button onclick="window.location.href='{{ url_for("test") }}'">点我啊</button> <button onclick="{{ url_for("test")
阅读全文
posted @ 2021-09-25 12:02
CrossPython
阅读(61)
推荐(0)
摘要:
rom flask import Flask,render_template app = Flask(__name__,template_folder='templates',static_folder='static',static_url_path='/static'·) @app.route(
阅读全文
posted @ 2021-09-25 08:49
CrossPython
阅读(36)
推荐(0)
摘要:
for /L %i in (1 1 3) do @(Bwn https://ww****371J?p=%i)
阅读全文
posted @ 2021-09-20 20:46
CrossPython
阅读(45)
推荐(0)
摘要:
conn = ... charset='cp936'
阅读全文
posted @ 2021-09-13 09:45
CrossPython
阅读(212)
推荐(1)
摘要:
Sub test()' Dim s As Collection '定义s变量为集合对象' Set s = New Collection '初始化集合对象s (否则无法使用) Dim s As New Collection '推荐这句代码,直接初始化,可以不用再Set了 '集合s中添加元素的方法 Fo
阅读全文
posted @ 2021-09-12 10:05
CrossPython
阅读(80)
推荐(0)
摘要:
Win + R => 运行 输入:rundll32.exe sysdm.cpl,EditEnvironmentVariables 点击确定,会弹出编辑环境变量窗口
阅读全文
posted @ 2021-09-02 10:42
CrossPython
阅读(225)
推荐(0)
摘要:
https://www.cnblogs.com/xingag/p/15196124.html 1. 前言 大家好,我是安果! 一提到自动化,可能大家想到的是 App 端的 Appium、Airtest、AutoJS,亦或是 Selenium、Puppeteer、Cypress 等 Web 端的自动化
阅读全文
posted @ 2021-08-28 15:40
CrossPython
阅读(1120)
推荐(0)
摘要:
docmd.openformdocmd.runsqldocmd.close Access在窗体间传递参数的几种常用办法 在Office Access 实际开发应用中,常常需要在窗体间传递参数。把我10多年为企业开发Access管理系统过程中的一些经验总结了一下。 常用的几种参数传递方法有如下几种:
阅读全文
posted @ 2021-08-25 21:06
CrossPython
阅读(124)
推荐(0)
摘要:
import win32com.client as win32 import pythoncom pythoncom.CoInitialize() def send_mail(**kwargs): outlook = win32.Dispatch('Outlook.Application') rec
阅读全文
posted @ 2021-08-24 18:22
CrossPython
阅读(126)
推荐(0)
摘要:
string .encode("utf-8").decode("latin1")
阅读全文
posted @ 2021-08-18 11:28
CrossPython
阅读(1335)
推荐(0)