码迷,mamicode.com
首页 >  
搜索关键字:numbers range    ( 16974个结果
Linux 安装 Tomcat
解压缩并移动到指定目录 #解压缩 tar -zxvf apache-tomcat-8.5.23.tar.gz 1 #变更目录名 mv apache-tomcat-8.5.23 tomcat 1 #移动目录 mv tomcat/ /usr/local/ 1 #常用命令 #启动 /usr/local/t ...
分类:系统相关   时间:2020-06-16 13:17:44    阅读次数:57
python 如果跳过指定数目的循环
使用next函数 it = iter(range(10))for i in it: try: next(it) next(it) print(i) except Exception as e: pass ...
分类:编程语言   时间:2020-06-16 11:36:52    阅读次数:170
有效电话号码-leetcode
有效电话号码 shell 编程题目 考察了很多方面的内容 shell 命令 grep | sed | awk 正则表达式 shell 的转义处理 1. 地址 https://leetcode-cn.com/problems/valid-phone-numbers/ 2. 解法 你可以假设一个有效的电 ...
分类:其他好文   时间:2020-06-16 00:34:28    阅读次数:121
进程间通信
进程间通信 见天写了一段爬虫代码,通过信号量控制进程数量,代码如下: #!/usr/bin/python3 # -*- encoding: utf-8 -*- import requests from bs4 import BeautifulSoup from multiprocessing imp ...
分类:系统相关   时间:2020-06-16 00:34:08    阅读次数:70
Go语言系列之性能调优
在计算机性能调试领域里,profiling 是指对应用程序的画像,画像就是应用程序使用 CPU 和内存的情况。 Go语言是一个对性能特别看重的语言,因此语言中自带了 profiling 的库,这篇文章就要讲解怎么在 golang 中做 profiling。 Go性能优化 Go语言项目中的性能优化主要 ...
分类:编程语言   时间:2020-06-15 21:11:17    阅读次数:61
javadoc标签
javadoc标签 The current tags are Tag Introduced in JDK/SDK @author 1.0 {@code} 1.5 {@docRoot} 1.3 @deprecated 1.0 @exception 1.0 {@inheritDoc} 1.4 {@lin ...
分类:编程语言   时间:2020-06-15 20:54:00    阅读次数:105
__len__和__getitem__
import collections import random Card = collections.namedtuple("Card", ["rank", "suit"]) class FrenchDeck: ranks = ["A"] + [str(n) for n in range(2, 1 ...
分类:其他好文   时间:2020-06-15 17:29:29    阅读次数:64
队列list
1 常用函数 lpush rpush lpop rpop 2 通过索引获取列表中的元素 lindex key index 通过索引设置列表元素的值 LSET key index value 3 获取列表长度 llen key 4 获取列表指定范围内的元素 lrange key stat end ...
分类:其他好文   时间:2020-06-15 13:42:13    阅读次数:39
【剑指offer32 把数组排成最小的数】
题目描述 输入一个正整数数组,把数组里所有数字拼接起来排成一个数,打印能拼接出的所有数字中最小的一个。例如输入数组{3,32,321},则打印出这三个数字能排成的最小数字为321323。 先将数组的元素排序(按字符序排) 然后从头到尾连接就可以 class Solution { public: st ...
分类:编程语言   时间:2020-06-15 11:48:55    阅读次数:56
python-列表
+ 列表的初识 + 列表的索引切片 + 列表的增删改查 + 列表的嵌套 + 元组的初识(了解) + 元组的简单应用(了解) + range 2. **列表的初识** + why:int bool str:'123 True 太白' + str: 存储少量的数据。 + str:切片还是对其进行任何操作 ...
分类:编程语言   时间:2020-06-15 09:15:24    阅读次数:55
16974条   上一页 1 ... 65 66 67 68 69 ... 1698 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!