码迷,mamicode.com
首页 >  
搜索关键字:not find    ( 24186个结果
c++ string类find总结
c++ string类的find:1.find string s = "My cat's breath smells like cat food."; int a=s.find("breath"); cout<<a<<endl; 因为find是从0数起,输出字符串第一个字符的索引(从0开始),所以a ...
分类:编程语言   时间:2020-02-24 15:21:13    阅读次数:65
关于find_element_by_xpath的理解
最近爬取一个报表的数据,里面有个INPUT元素,没有ID,NAME,CLASS是重复使用的。没有办法,只好学习by_xpath的详细用法; from selenium import webdriver from selenium.webdriver.common.keys import Keys # ...
分类:其他好文   时间:2020-02-24 15:14:05    阅读次数:58
正则表达式 运用
从剪贴板中查找美国电话号码和电子邮件,并在屏幕打印。 import re import pyperclip #为电话创建正则表达式 phoneRegex = re.compile(r'''( (\d{3}|\(\d{3}\))? #区号 (\s|-|\.)? #分隔符 (\d{3}) #前三位 (\ ...
分类:其他好文   时间:2020-02-24 10:07:16    阅读次数:87
2020年2月24日09:06:11,Hash散列
问题描述 /** 有一个公司,当有新的员工来报道时,要求将该员工的信息加入(id,性别,年龄,住址..),当输入该员工的id时,* 要求查找到该员工的所有信息.* ?要求: 1)不使用数据库,,速度越快越好=>哈希表(散列)* 2)添加时,保证按照id从低到高插入[课后思考:如果id不是从低到高插入 ...
分类:其他好文   时间:2020-02-24 09:50:26    阅读次数:79
linux四剑客常用命令汇总
**四剑客常用命令汇总**1.findfindpath-option[-print][-exec-okcommand]{}\(find查找路径-typef/d-name.....-size1k/M-mtime/atime/ctime+-9文件)find-type/-perm/-empty/find/tmp-typef-name"*.tmp"-execrm-rf‘{}‘\;find/-typef-n
分类:系统相关   时间:2020-02-24 00:49:29    阅读次数:97
vim,grep,shell脚本实例及find用法
vim,grep,shell脚本实例及find用法1、定义一个对所有用户都生效的命令别名定义一个对所有用户都生效的命令别名需要更改全局配置文件/etc/bashrc,例如,我们以root用户编辑/etc/bashrc,在文件的最后一行增加aliaslike=‘ls‘当我们新启一个shell进程的时候,列出命令别名,会发现刚定义的别名like[root@localhost~]#tai
分类:系统相关   时间:2020-02-24 00:23:37    阅读次数:66
ansible 原理 面试
ansible 简介 ansible是一款自动化的运维工具基于Python语言实现,由Paramiko和PyYAML两个关键模块构建,可用于自动化部署应用、配置、编排task(持续交付、无宕机更新等) 组件: Host Lnventory 英[??nv?ntri]:记录了每一个由Ansible管理的 ...
分类:其他好文   时间:2020-02-23 22:39:15    阅读次数:104
Find Metal Mineral
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4003 题意: 给一棵n个节点的树, 节点编号为1~n, 每条边都有一个花费值. 有k个机器人从S点出发, 问让机器人遍历所有边,最少花费值多少? 思路: 用f(i, j)表示子树i用j个机器人的最少花费 ...
分类:Web程序   时间:2020-02-23 22:02:38    阅读次数:86
LeetCode | 1362. Closest Divisors最接近的因数【Python】
LeetCode 1362. Closest Divisors最接近的因数【Medium】【Python】【数学】 Problem "LeetCode" Given an integer , find the closest two integers in absolute difference w ...
分类:编程语言   时间:2020-02-23 20:17:07    阅读次数:90
LeetCode 687. Longest Univalue Path 最长同值路径 (C++/Java)
题目: Given a binary tree, find the length of the longest path where each node in the path has the same value. This path may or may not pass through the ...
分类:编程语言   时间:2020-02-23 19:56:52    阅读次数:92
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!