ICode9

精准搜索请尝试: 精确搜索
  • Codeforces Round #814 (Div. 2)2022-08-17 17:01:50

    A.Chip Game 题目描述 Burenka and Tonya are playing an old Buryat game with a chip on a board of n \times m cells. At the beginning of the game, the chip is located in the lower left corner of the board. In one move, the player can move the chip to the righ

  • 还在为如何编写Web自动化测试用例而烦恼嘛?资深测试工程师手把手教你Selenium 测试用例编写2022-08-17 11:04:25

    原文链接 本文节选自霍格沃兹测试开发学社内部教材 编写Selenium测试用例就是模拟用户在浏览器上的一系列操作,通过脚本来完成自动化测试。 编写测试用例的优势: 开源,免费。 支持多种浏览器 IE,Firefox,Chrome,Safari。 支持多平台 Windows,Linux,Mac。 支持多语言 Python,Java

  • docker pull 和 push2022-08-17 10:01:59

    docker 拉取镜像和推送镜像 pull镜像 docker pull 仓库地址(repository:tag) 从镜像中运行容器 # -i 交互式操作 # -t 终端 # -d 后台运行 # —name 容器名字 docker run -it --name lance_test -d 仓库地址(repository:tag) 查看容器id docker ps 进入容器 docker exec -it

  • python 中统计绵羊 ARS-UI_Ramb_v2.0)参考基因组中GC含量及每条染色体的长度2022-08-17 08:32:00

      001、方法1 root@PC1:/home/test# ls a.fasta test.py root@PC1:/home/test# head -n 5 a.fasta ## 参考基因组文件 >NC_056054.1 Ovis aries strain OAR_USU_Benz2616 breed Rambouillet chromosome 1, ARS-UI_Ramb_v2.0, whole genome shotgun sequence CCTGA

  • python中统计人类基因组的外显子总长度(部分测试序列)2022-08-16 23:32:52

      001、方法1 root@PC1:/home/test# ls a.txt test.py root@PC1:/home/test# cat a.txt ## 测试数据 #chromosome nc_accession gene gene_id ccds_id ccds_status cds_strand cds_from cds_to cds_loc

  • mybatisplus入门2022-08-16 22:03:32

    一、maven项目文件 点击查看代码 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> </dependency> <dependency> <gr

  • Mysql limit、offset 使用2022-08-16 20:34:56

    1、原表数据 // 全表数据 select * from summer_test; 2、使用 limit // 查询符合条件的 4 条数据,如果只有 1 条数据符合条件则返回 1 条数据 select * from summer_test limit 4; // limit 4 等价于 limit 4 offset 0 select * from summer_test limit 4 offset 0; 3、

  • 密码修改2022-08-16 20:00:29

    var pwdRegex = new RegExp('(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[^a-zA-Z0-9]).{8,30}'); if (!pwdRegex.test('A3b@C2dEF')) {   alert("您的密码复杂度太低(密码中必须包含大小写字母、数字、特殊字符),请及时修改密码!"); } 场景二:密码中必须包含字母(不区分大小

  • ubuntu20.04 设置开机启动2022-08-16 08:31:15

      修改 rc-local.service 文件的权限 sudo chmod 777 /lib/systemd/system/rc-local.service 修改 rc-local.service 文件 打开 rc-local.service,可以看到有以下内容: # SPDX-License-Identifier: LGPL-2.1+ # # This file is part of systemd. # # systemd is free software;

  • Pytest框架 — 07、Pytest的Fixture(部分前后置)(二)2022-08-15 19:03:43

    目录4、Fixture的相互调用5、Fixture复用6、Fixture缓存返回结果7、Fixture的后置处理(一)使用yield关键字实现后置(二)使用addfinalizer关键字实现后置(三)yield和addfinalizer的区别 4、Fixture的相互调用 示例: import pytest # 第一层fixture @pytest.fixture() def fixture_1():

  • python 中实现按照 fasta文件的scaffold进行排序2022-08-15 18:33:47

      001、 方法1 root@PC1:/home/test# ls a.fasta test.py root@PC1:/home/test# cat test.py ## 测试程序 #!/usr/bin/python in_file = open("a.fasta", "r") dict1 = dict() for i in in_file: i = i.strip() if i[0] == &qu

  • python 中统计fastq文件中 GC含量2022-08-15 17:01:58

      001、 root@PC1:/home/test# ls a.fastq test.py root@PC1:/home/test# cat a.fastq ## 测试fastq文件 @DJB775P1:248:D0MDGACXX:7:1202:12362:49613 TGCTTACTCTGCGTTGATACCACTGCTTAGATCGGAAGAGCACACGTCTGAA + JJJJJIIJJJJJJHIHHHGHFFFFFFCEEEEEDBD

  • python 中实现切除fastq文件序列的前后若干碱基2022-08-15 16:01:05

      001、 root@PC1:/home/test# ls a.fastq test.py root@PC1:/home/test# cat test.py ## 测试程序 #!/usr/bin/python in_file = open("a.fastq", "r") out_file = open("result.txt", "w") dict1 = {} idx = 0 for i

  • 5.3 检查约束2022-08-15 13:03:04

    检查约束(CHECK) 目录检查约束(CHECK)SQL Server CHECK约束简介SQL Server CHECK约束和NULL引用多列的CHECK约束给已存在的表添加CHECK约束移除CHECK约束禁用插入或更新的检查约束 SQL Server CHECK约束简介 CHECK约束允许您指定列中必须满足布尔表达式的值 比如,要要求正单价,您可

  • linux下运行一个java类2022-08-15 13:01:23

    java代码,使用了jdk的包,以及第三方jar包(user.jar)中的类,以下例子为所有文件均在同一目录下。也可以不在同一目录,执行命令时需指定绝对路径即可。 import a.b.User; import java.util.*; public class test { public static void main(String ...args){ System.out.p

  • DML、DDL、DCL2022-08-15 12:04:15

    D是Data,L是language 中间字母分别是 M:manipulation 操纵,操作 D:definition 定义 C:control 控制 在执行commit、DDL、DCL、exit、conn语句之后会进行自动提交事务;rollback、quit取消事务,savepoint s1,指定保存点s1,rollback to s1可以回到保存点s1。 一、DML 主要是对数据库数据的操作

  • Python 函数运行时间统计2022-08-15 11:30:42

    from functools import wraps import time def func_time(f): @wraps(f) def wrapper(*args, **kwargs): start = time.time() result = f(*args, **kwargs) end = time.time() print(f"\033[1;31;40m{f.__name__} took {(e

  • MathProblem 34 Drug test problem2022-08-15 06:00:08

    10% of the people in a certain population use an illegal drug. A drug test yields the correct result 90% of the time, whether the person uses drugs or not. A random person is forced to take the drug test and the result is positive. What is the probability

  • cat命令使用2022-08-14 19:34:53

    linux中的13个基本Cat命令示例 原创 入门小站 入门小站 2022-08-05 22:00 发表于湖北 收录于合集#Linux478个 1. 显示文件内容 在下面的例子中,它将显示内容/etc/passwd文件。 # cat /etc/passwd     root:x:0:0:root:/root:/bin/bashbin:x:1:1:bin:/bin:/sbin/no

  • Codeforces Round #813 (Div. 2) A~C2022-08-14 01:00:58

    A. Wonderful Permutation    You are given a permutation p1,p2,…,pnp1,p2,…,pn of length nn and a positive integer k≤nk≤n. In one operation you can choose two indices ii and jj (1≤i<j≤n1≤i<j≤n) and swap pipi with pjpj. Find the minimum nu

  • C#-IO读写2022-08-14 00:31:41

    文件夹/文件 的创建和删除 // 创建一个文件夹 Directory.CreateDirectory(@"E:\Test"); // 删除指定文件夹(当前文件夹必须为空) Directory.Delete(@"E:\Test"); // 删除指定文件夹(即使要删除的文件夹不为空,也会删除) Directory.Delete(@"E:\Test", true); // 获取文件夹下的文件 Dir

  • 基于python的数学建模---时间序列2022-08-13 22:03:19

    JetRail高铁乘客量预测——7种时间序列方法 数据获取:获得2012-2014两年每小时乘客数量 import pandas as pd import numpy as np import matplotlib.pyplot as plt df = pd.read_csv('C:\\Users\\Style\\Desktop\\jetrail.csv', nrows=11856) df.head() print(df.head()) 从20

  • 输入和控制2022-08-13 19:30:08

    按键检测 Input.GetKeyDown(KeyCode.W);//检测按键是否按下(是指的按下的一瞬间状态),这里是是否按下w Input.GetKeyUp(KeyCode.W);//检测按键是否抬起(是指的抬起的一瞬间状态),这里是检测的w Input.GetKey(KeyCode.W);//检测按键是否处于按下状态(按下的持续状态) Input.anyKeyDown;//检测任

  • 常用Dos命令2022-08-13 18:00:59

    常用的Dos命令 #盘符切换 例:D: +enter #查看当前目录下的所有目录 dir #切换目录 cd (即change directory) 进入xxx(如下级目录) cd /d xxx(如D:\software) 可直接跨盘进入 进入后 #创建文件夹 md xxx(如test) #创建文件 cd>xxx(如1.txt) #删除文件 del xxx(如1.txt) #返回上一

  • k8s资源对象:StatefulSet和DaemonSet2022-08-13 17:30:08

    k8s资源对象:StatefulSet和DaemonSet StatefulSet 简介: StatefulSet 是用来管理有状态应用的工作负载 API 对象。 无状态服务(Stateless Service):该服务运行的实例不会在本地存储需要持久化的数据,并且多个实例对于同一个请求响应的结果是完全一致的。 有状态服务(Stateful Service

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有