编程笔记
-
批量重置密码
#导入各种包 from selenium import webdriver#浏览器 from selenium.webdriver.common.by import By#选择器 from selenium.webdriver.support import expected_conditions as EC#等待条件 from selenium.webdriver.…
-
Goodbye 2018 A~F 题解
比赛链接:https://codeforc.es/contest/1091。 A 黄色的最多有 /(/min(y,b-1,r-2)/) 个,然后直接输出答案。 代码:https://pastebin.ubuntu.com/p/dqJnf89gdn/。 B 其实答案就是所有向量相加后横纵坐标分别除以 /…
-
.net6下使用DotnetZip解压文件,中文出现乱码问题解决
DotnetZip使用方法见此文章https://www.cnblogs.com/pengze0902/p/6124659.html 在netframework环境下,使用上面文章中的设置Encoding为Default的方法即可解决中文乱码问题 但是当我使用.net6创建控制台项目并采…
-
eplan新建图框
1.在工具-主数据-图框-打开,打开了图框选项, 2.选择GB-001,复制,并重新粘贴到里面,重新命名,注意:重新命名时不要把.fn1删掉 3.打开新建的图框,将原先GB-001内的图框进行删除 4.删掉后按照自己的想法…
-
Selenium - 元素操作(1) - 基础操作/元素信息/元素检查
Selenium - 元素操作 元素示例 基础操作 点击元素: .click() # 点击百度一下按钮 driver.find_element_by_id("su").click() 在元素中输入信息: .send_keys(value) # 在输入框输入python driver.find_element_by_i…
-
c++静态for循环
#include <iostream> // 通过递归实现 template <int Beg, int End> struct static_for { template <typename Fn> void operator()(const Fn& fn) const { if (Beg < End) { fn(Beg); sta…
-
C++文件读写详解(ofstream,ifstream,fstream)
转载来自:https://blog.csdn.net/seadplus/article/details/7802346?spm=1001.2101.3001.6650.3&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-3-7802346-blog-6859379.pc_…
-
Delphi 经典游戏程序设计40例 的学习 例29 残留的轨迹是钟摆线
unit R29; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, StdCtrls; type TRei29 = class(TForm) Panel1: TPanel; Button1: TButton; Scrol…
-
结对编程队友代码分析
摘要 本博客是对结对编程队友丑怡丹个人项目:中小学生数学题自动生成系统的分析 一、 实现语言 C++ 二、 整体思路 1.首先在teacher.h文件里定义存储教师信息的结构体,各种全局符号、数组、函…
-
第2章
example 1.bmi height =1.70print("您的身高:" + str(height))weight = 48.5print("您的体重:" + str(weight))bmi = weight/(height*height)print("您的BMI指数为:"+str(bmi))#判断身材是否合理if bmi<18.5: …