摘要:
//n个骰子的和,组成数字m的可能 function f(n,m) { if(n==1){ return 1; } var len=m-n; var sum=0; while (len>=0){ len-- //当前骰子和剩余骰子不能大于7 if(m-n+1-len<7&&n-1+len<... 阅读全文
摘要:
class _Getch: """Gets a single character from standard input. Does not echo to the screen.""" def __init__(self): try: self.impl = _GetchWindows() except ImportEr... 阅读全文
摘要:
function getInfo(html){ //去掉注释 html=html.replace(//g,"") var arrP=[] var reg=/]*>|>)[\d\D]*?/gi html.replace(reg,function(m){ if(/^/gi.test(m)){ m= m.replace(... 阅读全文
摘要:
var glob = require("glob") // options is optional var fs=require("fs") glob("**", function (er, files) { files.forEach(function(file){ var stat=fs.lstatSync(file) if(!stat.isDi... 阅读全文