码迷,mamicode.com
首页 >  
搜索关键字:numbers range    ( 16974个结果
python遇到的优化问题
1,enumerate()、iterrows()、range()在循环遍历时候的使用场景有何区别? 2,如何利用好对象组,优化程序; ...
分类:编程语言   时间:2020-06-13 17:42:13    阅读次数:69
Leetcode: 902. Numbers At Most N Given Digit Set
descption We have a sorted set of digits D, a non-empty subset of {'1','2','3','4','5','6','7','8','9'}. (Note that '0' is not included.) Now, we writ ...
分类:其他好文   时间:2020-06-13 17:10:49    阅读次数:64
python -----关于生成器generator
普通生成器: j =[x*8 for x in range(10)]#普通列表生成式 j2 = (x*8 for x in range(10))#普通生成器 ,只需将 [ 改成( 即可。 print(j2)#能看到打印出的是生成器的内存地址,说明生成器返回的并不是列表,生成器只是可迭代的数列算法。 ...
分类:编程语言   时间:2020-06-13 13:23:48    阅读次数:89
LeetCode 91 动态规划 Decode Ways 解码方法
LeetCode 91 动态规划 Decode Ways 解码方法LeetCodeA message containing letters from A-Z is being encoded to numbers using the following mapping:'A' -> 1'B' -> ... ...
分类:其他好文   时间:2020-06-13 00:18:17    阅读次数:56
6.12
class Solution(object): def threeSum(self, nums): res_list=[] nums.sort() for i in range(len(nums)): if(nums[i]>0): break if i>0 and nums[i]==nums[i-1 ...
分类:其他好文   时间:2020-06-13 00:12:53    阅读次数:120
诊断 ORA-27300 ORA-27301 ORA-27302 错误 (文档 ID 2179478.1)
诊断 ORA-27300 ORA-27301 ORA-27302 错误 (文档 ID 2179478.1) Oracle Database - Enterprise Edition - 版本 12.1.0.2 到 12.1.0.2 [发行版 12.1]Oracle Database - Enterp ...
分类:其他好文   时间:2020-06-11 21:48:15    阅读次数:67
stylus
stylus是什么? 1. stylus是css预处理器,具有对css可编程,编写快速便捷的特性. 2. stylus源自于Node.js ,2010年产生 , 主要用来给Node项目进行css预处理支持 . stylus应用场景? 1.标准的stylus语法就是没有花括号,没有分号,没有冒号 , ...
分类:其他好文   时间:2020-06-11 13:22:35    阅读次数:92
Linux操作篇之PXE装机
在实际工作中,可能会碰到一次上架数十、几百甚至上千台虚拟机或者物理机。一台台去安装操作系统太浪费时间,所以可以使用PXE自动化安装操作系统。 一、PXE装机原理。 二、标准PXE安装系统。 1、所需服务: TFTP:用以发送引导配置文件。 FTP:由于TFTP是使用UDP传输文件,是一种不可靠的传输 ...
分类:系统相关   时间:2020-06-11 09:12:37    阅读次数:106
图像各种变换
平移: 遍历像素即可,也可以用函数[ : , m:n ] w,h,m= img.shape dst = np.zeros((w,h,m), np.uint8) for i in range(w-50): for j in range( h-60): dst[i+50, j+60] = img[i, ...
分类:其他好文   时间:2020-06-10 22:39:29    阅读次数:89
Python中随机数的使用方法有那些?
随机数功能1. choice(seq)此处的 seq 必须是有序的序列,返回序列中的一个随机项。 from random import * c1 = choice([1, 2, 3, 4, 5])c2 = choice((1, 2, 3, 4, 5))c3 = choice(range(1, 11) ...
分类:编程语言   时间:2020-06-10 17:34:07    阅读次数:118
16974条   上一页 1 ... 67 68 69 70 71 ... 1698 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!