码迷,mamicode.com
首页 >  
搜索关键字:shell time expr wait    ( 86807个结果)
通过expected_conditions判断网页元素是否存在
expected_conditions模块: 是Selenium的一个子模块,selenium.webdriver.support.expected_conditions 可以对网页上元素是否存在进行判断,一般用于断言或与WebDriverWait配合使用 1 import time 2 from ...
分类:Web程序   时间:2021-02-22 11:51:54    阅读次数:0
3 种进度条 -- 记录
第一种:普通进度条 # 普通进度条 import sys import time def test(): for i in range(1, 101): print('\r', end='') print('Download progress: {}%'.format(i), '▋' * (i//2 ...
分类:其他好文   时间:2021-02-22 11:47:27    阅读次数:0
用Python画一颗心、小人发射爱心(附源码)
先画一个爱心, 源代码: #!/usr/bin/env python # -*- coding:utf-8 -*- import turtle import time # 画心形圆弧 def hart_arc(): for i in range(200): turtle.right(1) turtl ...
分类:编程语言   时间:2021-02-20 12:23:41    阅读次数:0
LeetCode - Unique Binary Search Trees
Given an integer n, return the number of structurally unique BST's (binary search trees) which has exactly n nodes of unique values from 1 to n. Examp ...
分类:其他好文   时间:2021-02-20 12:13:36    阅读次数:0
sed命令使用
[root@server01 ~]# vi 1.txt 1111111111111111111 121212aaasdasdf asdfasdfasdfasdfasdf 12121212aklsdfjaklsdfkjk *****#)#((@#*@)1121212 root@gitlba-aming ...
分类:其他好文   时间:2021-02-20 12:08:34    阅读次数:0
2021.2.19cf痛苦经历
A. Shifting Stacks time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You have n stacks of b ...
分类:其他好文   时间:2021-02-20 11:52:20    阅读次数:0
JVM线上故障初步简易排查
线上故障主要包括cpu 磁盘 内存 网络等问题 依次排查 1.cpu 1) 先用ps找到进程pid 2) top -H -p pid 找到cpu占用高的线程 3)printf '%x\n' pid 获得16进制的nid 4) jstack pid |grep 'nid' -C5 -color 显示堆 ...
分类:其他好文   时间:2021-02-20 11:45:56    阅读次数:0
日期、时间函数
显示2016年2月份的日历print(calendar.month(2016,2)) 2016年为闰年In calendar.isleap(2016)OUt True 当前时间戳In time.time()OUt 145526477.661747 ...
分类:其他好文   时间:2021-02-19 13:32:28    阅读次数:0
Linux中的基本概念:内核和shell
本文将介绍一系列与Linux系统编程有关的概念。 操作系统的核心——内核 操作系统 System 、内核 kernel 广义指完整的软件包,这包括用来管理计算机资源的核心层软件,以及附带的所有标准软件工具,诸如命令行解释器、图形用户界面、文件操作工具和文本编辑器等。 狭义指管理和分配计算机资源(即C ...
分类:系统相关   时间:2021-02-18 13:57:40    阅读次数:0
Codeforces Round #701 (Div. 2) 题解
由于今天实在是太自闭了就前来写场已经 AK 的 div.2 的题解了 这场比赛是我的 div.2 首 AK 哦 A 先特判 \(b=1\),强制将 \(b+1\) 否则容易发现答案最大为 \(\log_ab\),所以直接枚举 \(b\) 加了多少次,枚举到 \(30\) 就行了。 B 考虑一个数组 ...
分类:其他好文   时间:2021-02-18 13:39:20    阅读次数:0
共86807条   上一页 1 ... 64 65 66 67 68 ... 8681 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!