码迷,mamicode.com
首页 >  
搜索关键字:dig    ( 2020个结果
[LeetCode] Parse Lisp Expression 解析Lisp表达式
You are given a string expression representing a Lisp-like expression to return the integer value of. The syntax for these expressions is given as fol ...
分类:其他好文   时间:2017-12-16 00:13:10    阅读次数:290
C博客作业--指针
一、PTA实验作业 题目1:6 6 输出月份英文名 1. 本题PTA提交列表 2. 设计思路 3.代码截图 4.本题调试过程碰到问题及PTA提交列表情况说明。 答案错误:其中有一个月份的英文名的首字母大小写出现问题。 题目2:6 8 使用函数实现字符串部分复制 1. 本题PTA提交列表 2. 设计思 ...
分类:其他好文   时间:2017-12-15 20:53:54    阅读次数:242
几种加密方式
1. Base64加密方式(可逆) Base64中的可打印字符包括字母A-Z/a-z/数组0-9/ 加号’+’斜杠’/’ 这样共有62个字符 Base64 ios7之后加入系统库 // 加密 public static String getBase64(String str) { byte[] b ...
分类:其他好文   时间:2017-12-14 17:01:41    阅读次数:268
中断知识
1 使用一个中断读取编码器的值, 2 #define PinA 2 //中断0 3 long count = 0; //计数值 4 long num = 0; 5 void setup() 6 { 7 Serial.begin(9600); //窗口初始化 8 pinMode(PinA,INPUT)... ...
分类:其他好文   时间:2017-12-13 11:47:12    阅读次数:145
java正则表达式
参考http://blog.csdn.net/telnetor/article/details/6041323 Unicode 编码并不只是为某个字符简单定义了一个编码,而且还将其进行了归类。 /pP 其中的小写 p 是 property 的意思,表示 Unicode 属性,用于 Unicode 正 ...
分类:编程语言   时间:2017-12-12 21:51:47    阅读次数:190
检测某一目录下md5相同的文件
import org.apache.commons.codec.digest.DigestUtils; import org.apache.commons.io.IOUtils; import java.io.File; import java.io.FileInputStream; import ... ...
分类:其他好文   时间:2017-12-12 17:27:45    阅读次数:170
猜字程序
import randomnumber = random.randint(1,100)guess = 0while True: num_in = input("Input your number please:") guess += 1 if not num_in.isdigit(): print( ...
分类:其他好文   时间:2017-12-12 16:03:35    阅读次数:150
Sublime Test插件介绍
首选需要安装Package Control,安装流程如下: 步骤1:敲击ctrl+` 步骤2:在出现框输入以下语句 (Sublime text3): import urllib.request,os,hashlib; h = '6f4c264a24d933ce70df5dedcf1dcaee' + ...
分类:其他好文   时间:2017-12-11 21:10:06    阅读次数:152
[Python] Find available methods and help in REPL
For example you want to know what methods are available in Python for String, you can do : Output: Now for example, we want to see How to use 'swapcas ...
分类:编程语言   时间:2017-12-10 11:23:45    阅读次数:157
Python 字符串常用方法
str = raw_input("please input the number:") if str.isdigit(): 为True表示输入的所有字符都是数字,否则,不是全部为数字 str为字符串 str.isalnum() 所有字符都是数字或者字母 str.isalpha() 所有字符都是字母 ...
分类:编程语言   时间:2017-12-09 22:35:38    阅读次数:131
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!