码迷,mamicode.com
首页 >  
搜索关键字:should    ( 4948个结果
Python学习之路——Day1
一、Python的变量定义和print函数 如代码所示,Python中变量定义不需要事先声明变量的类型,直接对变量进行赋值就行,Python会自动进行判断。其次,在Python中变量的命名也需要遵守以下规则: 然后,print函数在Python2和3中是不一样的,在2中print函数不用加(),而3 ...
分类:编程语言   时间:2018-02-12 23:06:13    阅读次数:232
357. Count Numbers with Unique Digits 用唯一的数字计算数字
Given a non-negative integer n, count all numbers with unique digits, x, where 0 ≤ x < 10n.Example: Given n = 2, return 91. (The answer should be the ... ...
分类:其他好文   时间:2018-02-12 23:05:39    阅读次数:266
【easy】479. Largest Palindrome Product
Find the largest palindrome made from the product of two n-digit numbers Since the result could be very large, you should return the largest palindrom ...
分类:其他好文   时间:2018-02-12 16:49:24    阅读次数:130
January 05th, 2018 Week 01st Friday
You can't make decisions based on fear and the possibility of what might happen. 不要因为恐惧未知的可能而妄下决定。 Perhaps I should stop casting away my time on those ...
分类:其他好文   时间:2018-02-12 00:23:26    阅读次数:163
Kafka Consumer
Push VS Pull An initial question we considered is whether consumers should pull data from brokers or brokers should push data to the consumer. In this ...
分类:其他好文   时间:2018-02-11 14:29:05    阅读次数:156
浅谈鸽巢原理的证明和简单应用
一、鸽巢原理的证明 1.定义: 若有n个鸽巢和kn+1只鸽子,所有的鸽子都进入鸽巢,那么至少有一个巢中有k+1只鸽子(n,k≥0)。 2.证明(反证法): 若每个鸽巢中的鸽子数都不大于k,则总鸽子数=N M,与假设相悖。得证。 关于LCM可参考以前的随笔:http://www.cnblogs.com ...
分类:其他好文   时间:2018-02-10 23:25:16    阅读次数:246
Makefile Demo案例
# Comments can be written like this. # File should be named Makefile and then can be run as `make `. # Otherwise we use `make -f "filename" `. # Warni... ...
分类:其他好文   时间:2018-02-10 16:57:14    阅读次数:160
Adding user to dialout on Linux
Adding user to dialout on Linux The currently logged user should have read and write access the serial port over USB. On most Linux distributions, thi ...
分类:系统相关   时间:2018-02-09 22:17:17    阅读次数:212
Linux:redhat6.5使用yum时提示需要注册问题解决方案
Linux:redhat6.5使用yum时提示需要注册问题解决方案 一、问题 新安装了redhat6.5.安装后,登录系统,使用yum时候。提示: This system is not registered to Red Hat Subscription Management. You can us ...
分类:系统相关   时间:2018-02-08 20:20:08    阅读次数:412
GetKeyState(), GetAsyncKeystate(), GetKeyboardSlate()
GetKeyState、GetAsyncKeyState、GetKeyboardState函数的差别: 1、BOOL GetKeyboardState( PBYTE lpKeyState );获得全部的256个键(键盘按键、鼠标按键等等)的状态,lpKeyState是指向一个256bit的数组。存放 ...
分类:其他好文   时间:2018-02-07 19:38:12    阅读次数:231
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!