码迷,mamicode.com
首页 >  
搜索关键字:numbers range    ( 16974个结果
leetcode [315. 计算右侧小于当前元素的个数]
(https://leetcode-cn.com/problems/count-of-smaller-numbers-after-self/) 可以这样想:我们把nums数组中的数都放在数轴上,那么我们根据某个数,看他数轴前边有多少个数就可以得到对应的count,这样会存在三个问题: 问题一:怎么保 ...
分类:其他好文   时间:2020-07-11 19:10:27    阅读次数:53
Python --- 异常处理
异常处理概述 Python程序在执行的时候,经常会遇到异常,如果中间异常不处理,经常会导致程序崩溃。比如后面我们写爬虫的时候,如果不进行异常处理,很可能虫爬了一半,直接崩溃了。 异常处理 异常处理格式 try: 程序 except Exception as 异常名称: 异常处理部分 try: for ...
分类:编程语言   时间:2020-07-11 17:18:36    阅读次数:54
[LeetCode] 241. Different Ways to Add Parentheses
Given a string of numbers and operators, return all possible results from computing all the different possible ways to group numbers and operators. Th ...
分类:其他好文   时间:2020-07-11 12:41:31    阅读次数:54
[系列] Go - json.Unmarshal 遇到的小坑
1.问题现象描述 使用 json.Unmarshal(),反序列化时,出现了科学计数法,参考代码如下: jsonStr := `{"number":1234567}` result := make(map[string]interface{}) err := json.Unmarshal([]byt ...
分类:Web程序   时间:2020-07-11 12:36:31    阅读次数:72
格式化3
import pandas excel=pandas.read_excel(r'E:\pandas练习\成绩单.xlsx') b=excel.style.bar(color='orange',subset=['test_1','test_2','test_3']) b.to_excel() ...
分类:其他好文   时间:2020-07-11 12:35:47    阅读次数:57
[LeetCode] 1365. How Many Numbers Are Smaller Than the Current Number
Given the array nums, for each nums[i] find out how many numbers in the array are smaller than it. That is, for each nums[i] you have to count the num ...
分类:其他好文   时间:2020-07-11 09:17:31    阅读次数:48
Redis基础数据结构
一、基于docker方式安装redis > docker pull redis > docker run -d --name redis -p6379:6379 redis --requirepass "lyy12332133" > docker exec -it redis redis-cli > ...
分类:其他好文   时间:2020-07-11 00:26:04    阅读次数:75
Python学习的第二次总结
有限循环 for i in range()# i自动加一 # for语句中若有break被执行,则跟着for后面的else语句就不会被正常执行;反之亦然 for i in range(3) : print(i) 结果:0、1、2 for i in range(1,3): print(i) 结果:1、 ...
分类:编程语言   时间:2020-07-10 23:55:30    阅读次数:97
list 插入的思路 剖析
l = [88,97,79,89,76] l.sort() # 正序排序列表 l1 = list() # 赋值 l1 list() 空list for i in range(len(l)+1): # 把i 循环 len(l)+1 空出一个位置 l1.append(0) # 赋值 l1 list (0 ...
分类:其他好文   时间:2020-07-10 13:31:53    阅读次数:53
python 入门到实践第十五章
'''15-1'''import matplotlib.pyplot as pltplt.rcParams['font.sans-serif'] = ['SimHei'] # 用来正常显示中文标签x_valye = list(range(1,5001))y_value = list(x**3 for ...
分类:编程语言   时间:2020-07-10 11:30:13    阅读次数:83
16974条   上一页 1 ... 50 51 52 53 54 ... 1698 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!