码迷,mamicode.com
首页 >  
搜索关键字:more    ( 7140个结果
【转】python中%代表什么意思?
python中%:1. 求模运算,相当于mod,也就是计算除法的余数,比如5%2就得到1。2. %还用在python的格式化输出,比如: a = 'test' print 'it is a %s' %(a) 打印的结果就是 it is a test 3.jupyter 中 %lsmagic Out[ ...
分类:编程语言   时间:2020-03-02 13:00:36    阅读次数:70
数据分析工具GrowingIO的使用
在head标签之间,加上如下代码: <!-- GrowingIO Analytics code version 2.1 --> <!-- Copyright 2015-2018 GrowingIO, Inc. More info available at http://www.growingio.c ...
分类:Windows程序   时间:2020-03-02 12:41:50    阅读次数:86
LeetCode 229: Majority Element II
Array LeetCode Given an integer array of size n, find all elements that appear more than ? n/3 ? times. The algorithm should run in linear time and i.... ...
分类:其他好文   时间:2020-03-01 14:18:51    阅读次数:71
Tomcat隐藏项目名称
<?xml version='1.0' encoding='utf-8'?><!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the ...
分类:其他好文   时间:2020-03-01 10:52:42    阅读次数:67
剑指offer-数组中出现次数超过一半的数字
题目描述 数组中有一个数字出现的次数超过数组长度的一半,请找出这个数字。例如输入一个长度为9的数组{1,2,3,2,2,2,5,4,2}。由于数字2在数组中出现了5次,超过数组长度的一半,因此输出2。如果不存在则输出0。 三种解法: 1. 用map将number和出现次数存起来。 时间复杂度O(n) ...
分类:编程语言   时间:2020-03-01 00:27:54    阅读次数:62
jQuery
write less do more 核心:操作dom(通过面向对象) jq是一种链式操作 。 $可以拿到dom元素 $(document).ready(function() { 页面加载好执行 }) //等同于 $(function() { 页面加载好执行 }) $(document).ready ...
分类:Web程序   时间:2020-02-29 23:57:44    阅读次数:116
108. Convert Sorted Array to Binary Search [Python]
108. Convert Sorted Array to Binary Search Given an array where elements are sorted in ascending order, convert it to a height balanced BST. For this ...
分类:编程语言   时间:2020-02-29 22:03:51    阅读次数:78
如何用hugo搭建个人博客
这几天研究了用hugo搭建个人博客。 简单的整理了一下。 1.安装hugo(windows 请查看官网介绍 https://gohugo.io/getting started/installing/) $ brew install hugo 之后检查版本 2.创建hugo 项目 $ hugo new ...
分类:其他好文   时间:2020-02-29 14:45:13    阅读次数:77
kernel文件结构,makefile与kconfig机制分析
kernel文件结构,makefile与kconfig机制分析kernelmakefilekbuild一、目录结构二、配置x210ii_qt_defconfigmenuconfig三、Kconfig文件格式关系 以下分析均来自于kernel 2.6.35.7版本 一、目录结构NameDescript... ...
分类:其他好文   时间:2020-02-28 22:18:13    阅读次数:70
剑指offer-找到第k大的数,找到数组中个数超过一半的数,找到数组中最小的k个数。
1.划分 函数partition用于将数组分为两段,一段返回小于基准值,一段大于基准值。并且基准值到达它应该在的位置。返回基准值的下标。 代码: 找到数组中个数超过一半的数 思路1: 既然这个数的个数超过总个数的一半,那么如果把数组排序,在中间的那个数,必定是所要找的数。所以把问题转化为找n/2大的 ...
分类:编程语言   时间:2020-02-28 21:00:59    阅读次数:73
7140条   上一页 1 ... 39 40 41 42 43 ... 714 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!