const result = Number('55px'); // isNaN "NaN" console.log(isNaN(result)); // true console.log(isNaN('I am a String!')); // true -- NOT Good console.lo... ...
分类:
其他好文 时间:
2019-06-18 21:24:16
阅读次数:
122
n = 1while n < 6: cmd = 'adb shell am start -W -n com.sf.DarkCalculator/.MainActivity' content = os.popen(cmd) print('启动成功') for line in content.readl ...
分类:
数据库 时间:
2019-06-17 12:50:54
阅读次数:
208
BSGS与ExBSGS:大步小步法 朴素BSGS $BSGS$也就是$Baby~ Step~ Giant~ Step$,用以解决形如以下的问题: 求解$A^x \equiv B (mod~C)$的最小整数解。其中$A$与$C$互质。 设$x = am b$则原式变为 $$ A^{am b}\equi ...
分类:
其他好文 时间:
2019-06-13 22:12:36
阅读次数:
138
https://www.cnblogs.com/i-am-lvjiazhen/p/6264354.html 使用homebrew安装 brew install python3 brew linkapps python3 将其设置为默认python,可选 cmd命令打开vi ~/.bash_profi ...
分类:
编程语言 时间:
2019-06-09 23:57:12
阅读次数:
242
启动时间 冷启动:adb shell am start -W -n package/activity停止app命令:adb shell am force-stop package获取启动包名:adb logcat|grep START com.android.browser/.BrowserActi ...
分类:
移动开发 时间:
2019-06-09 23:47:58
阅读次数:
152
一、adb启动activity: $ adb shell$ am start -n {包(package)名}/{包名}.{活动(activity)名称} 如:启动浏览器 # am start -n com.android.browser/com.android.browser.BrowserAct ...
分类:
数据库 时间:
2019-06-07 12:53:43
阅读次数:
99
C# :如何优雅地退出WPF应用程序 前言 I should know how I am supposed to exit my application when the user clicks on the Exit menu item from the File menu. 或者点击window ...
How to show out three rows from the same databand On A4? Quote Post by DoraHuang » Tue Mar 13, 2018 4:13 am Hello, there are few questions to ask,1. H ...
分类:
其他好文 时间:
2019-06-03 09:30:59
阅读次数:
108
#!/user/bin/python# -*- coding:utf-8 -*-#1、%s字符串格式化print("i am %s my hobby is zd " % "xq")#2、%d只能接受数字#3、%f浮点数#4、打印百分比#5、键值对拼接#6、formattpl = "i am {},a ...
分类:
其他好文 时间:
2019-05-30 22:00:30
阅读次数:
135
% %s 通用字符串和数字 所有都可以替代 "i am %s , %s years old"%(jim,18) %d 整数 %.2f保留小数点后两位 %f浮点数 默认小数点后6位 %%输出百分号% %(name)s 字典key 取值 format {} {}.format() 空的按顺序匹配 {0} ...
分类:
编程语言 时间:
2019-05-30 17:56:06
阅读次数:
112