码迷,mamicode.com
首页 >  
搜索关键字:code    ( 108667个结果
python求数字位数的方法
第一种:利用str()函数将数字转化成字符串,再利用len()函数判断位长。 1 a=Int(raw_input("the number you want type in:") 2 b=len(str(a)) 3 print b 第二种:利用除10取商,通过循环次数判断位数。 1 c=0 2 a=i... ...
分类:编程语言   时间:2016-12-05 11:55:23    阅读次数:366
VS code常用的几个插件
VScode是一个我最近才开始用的编辑器,在此列几个自己在用的插件,以备换机时的需要。 View In Browser 预览页面(ctrl+F1) vscode-icons 侧栏的图标,对于一个有视觉强迫症的人是必须要的 HTML Snippets 支持HTML5的标签提示 HTML CSS sup ...
分类:其他好文   时间:2016-12-05 11:54:32    阅读次数:573
作业十一 指针+总结
冒泡法进行排序 在数组中查找指定函数 报数游戏 ...
分类:其他好文   时间:2016-12-05 11:44:36    阅读次数:176
python ljust,rjust,center,zfill对齐使用方法
字符串在输出时的对齐:S.ljust(width,[fillchar]) #输出width个字符,S左对齐,不足部分用fillchar填充,默认的为空格。 S.rjust(width,[fillchar]) #右对齐 S.center(width, [fillchar]) #中间对齐 S.zfill ...
分类:编程语言   时间:2016-12-05 11:38:25    阅读次数:328
java中URL 的编码和解码函数
java中URL 的编码和解码函数java.net.URLEncoder.encode(String s)和java.net.URLDecoder.decode(String s);在javascript 中URL 的编码和解码函数escape(String s)和unescape(String s ...
分类:编程语言   时间:2016-12-05 09:33:19    阅读次数:166
Leetcode: Reconstruct Original Digits from English
# of '0': # of 'z' # of '2': # of 'w' 4: u 6: x 8: g 3: h - 8 5: f - 4 7: s - 6 1: o - 0 - 2 - 4 9: i - 5 - 6 - 8 我的code用了一个数组来存char count ...
分类:其他好文   时间:2016-12-05 09:30:45    阅读次数:251
319. Bulb Switcher
There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, you toggle every ...
分类:其他好文   时间:2016-12-05 09:30:15    阅读次数:186
295. Find Median from Data Stream
Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two ...
分类:其他好文   时间:2016-12-05 07:48:18    阅读次数:204
《CODE》读后笔记——第14~25章
反馈与触发器 振荡器不需要人的干涉即可自主且不断地实现断开和闭合。所有计算机都靠某种振荡器来使其他部件同步工作。 当两个开关都断开时,电路有两个稳定状态,这样的一个电路称为触发器。触发器具有记忆性,可以保持信息。 触发器: 《code》书中常用的电路 振荡器分频器8位行波(异步)计数器8-1选择器3... ...
分类:其他好文   时间:2016-12-05 07:38:11    阅读次数:296
JavaEE笔记(七)
Struts获取如何获取请求响应和回话 ...
分类:编程语言   时间:2016-12-05 02:18:50    阅读次数:150
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!