摘要: 效果图 阅读全文
posted @ 2019-06-27 23:48 anobscureretreat 阅读(4641) 评论(0) 推荐(0)
摘要: #字符串转整数 string ss="-99"; cout<< stoi(ss)<<endl; 阅读全文
posted @ 2019-06-27 23:45 anobscureretreat 阅读(611) 评论(0) 推荐(0)
摘要: # -*- coding:utf-8 -*- from collections import deque # 引入队列 maze = [ [1,1,1,1,1,1,1,1,1,1], [1,0,0,1,0,0,0,1,0,1], [1,0,0,1,0,0,0,1,0,1], [1,0,0,0,0,1,1,0,0,1], [1,0,1,1,1... 阅读全文
posted @ 2019-06-27 23:44 anobscureretreat 阅读(1611) 评论(0) 推荐(0)
摘要: // var a = ""; // var a = " "; // var a = null; // var a = undefined; // var a = []; // var a = {}; // var a = NaN; if(a === undefined) { // 只能用 === 运算来测试某个值是否是未定义的 ... 阅读全文
posted @ 2019-06-27 23:43 anobscureretreat 阅读(2373) 评论(0) 推荐(0)
摘要: 参考:https://www.cnblogs.com/true-true/p/9772286.html 阅读全文
posted @ 2019-06-27 23:43 anobscureretreat 阅读(1189) 评论(0) 推荐(0)
摘要: 输出 demo2 输出 参考:https://www.cnblogs.com/xiugeng/p/9687354.htmlhttps://blog.csdn.net/weixin_41106545/article/details/83211418 阅读全文
posted @ 2019-06-27 23:40 anobscureretreat 阅读(210) 评论(0) 推荐(0)
摘要: demo1 demo2 参考:https://blog.csdn.net/Hanging_Gardens/article/details/79014160 阅读全文
posted @ 2019-06-27 23:38 anobscureretreat 阅读(613) 评论(0) 推荐(0)
摘要: >>>x = 7 >>> eval( '3 * x' ) 21 >>> eval('pow(2,2)') 4 >>> eval('2 + 2') 4 >>> n=81 >>> eval("n + 4") 85 参考: https://www.runoob.com/python/python-func-eval.html 阅读全文
posted @ 2019-06-27 23:38 anobscureretreat 阅读(178) 评论(0) 推荐(0)
摘要: #include /* puts, printf */ #include /* time_t, struct tm, time, localtime */ struct Position{ double x; double y; double z; }; struct Orientation{ double w; double... 阅读全文
posted @ 2019-06-27 23:36 anobscureretreat 阅读(190) 评论(0) 推荐(0)
摘要: demo1 demo2 参考:https://blog.csdn.net/caobin0825/article/details/80338438 阅读全文
posted @ 2019-06-27 23:35 anobscureretreat 阅读(1697) 评论(0) 推荐(0)
摘要: parseFloat("22.34.5"); //returns 22.34 Math.floor(),不四舍五入 ,向下取整Math.floor(2.98)2 阅读全文
posted @ 2019-06-27 23:33 anobscureretreat 阅读(193) 评论(0) 推荐(0)
摘要: a=2.33332.3333a.toFixed(2)"2.33" 阅读全文
posted @ 2019-06-27 23:32 anobscureretreat 阅读(1018) 评论(0) 推荐(0)
摘要: 查看已经连接的服务端口(ESTABLISHED) netstat -a 查看所有的服务端口(LISTEN,ESTABLISHED) netstat -ap 查看指定端口,可以结合grep命令: netstat -ap | grep 8080 也可以使用lsof命令: lsof -i:8888 若要关闭使用这个端口的程序,使用kill + 对应的pid kill -9 PID号 参考... 阅读全文
posted @ 2019-06-27 23:31 anobscureretreat 阅读(1604) 评论(0) 推荐(0)
摘要: print("当前时间: ",time.strftime('%Y.%m.%d %H:%M:%S ',time.localtime(time.time()))) import time import datetime t = time.time() print (t) #原始时间数据 print (int(t)) ... 阅读全文
posted @ 2019-06-27 23:29 anobscureretreat 阅读(606) 评论(0) 推荐(0)
摘要: import sysprint(sys.path) orwhich pythonwhich python3 阅读全文
posted @ 2019-06-27 23:28 anobscureretreat 阅读(1331) 评论(0) 推荐(0)
摘要: 输出 阅读全文
posted @ 2019-06-27 23:27 anobscureretreat 阅读(670) 评论(0) 推荐(0)