上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 68 下一页
摘要: 输出 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)
摘要: >>>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)
摘要: demo1 demo2 参考:https://blog.csdn.net/Hanging_Gardens/article/details/79014160 阅读全文
posted @ 2019-06-27 23:38 anobscureretreat 阅读(613) 评论(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)
摘要: # Easy-RSA 3 parameter settings # NOTE: If you installed Easy-RSA from your distro's package manager, don't edit # this file in place -- instead, you should copy the entire easy-rsa directory # to... 阅读全文
posted @ 2019-06-25 13:45 anobscureretreat 阅读(4) 评论(0) 推荐(0)
摘要: 输出 阅读全文
posted @ 2019-06-25 13:41 anobscureretreat 阅读(5503) 评论(0) 推荐(1)
摘要: 输出 阅读全文
posted @ 2019-06-25 11:10 anobscureretreat 阅读(4918) 评论(0) 推荐(0)
摘要: 输出 阅读全文
posted @ 2019-06-24 09:58 anobscureretreat 阅读(148) 评论(0) 推荐(0)
摘要: //char carray[]="nihao"; char carray[]={'a','b','c','d','\0'}; printf("array=%s",carray); 阅读全文
posted @ 2019-06-23 00:33 anobscureretreat 阅读(525) 评论(0) 推荐(0)
摘要: 显示0x 显示6位有效数字 阅读全文
posted @ 2019-06-23 00:29 anobscureretreat 阅读(224) 评论(0) 推荐(0)
摘要: %d,int %ld,long int %lld,long long %hd,short %c,char %f,float %lf,double %u,unsigned %x,十六进制输出int,或者long int 或者 short int %o,八进制输出 %s,字符串 阅读全文
posted @ 2019-06-23 00:17 anobscureretreat 阅读(366) 评论(0) 推荐(0)
摘要: char 1 short 2 int 4 long 4 float 4 double 8 signed 最高位是符号位,有符号数,可以表示负数 unsigned 最高位是数值位,无符号数,不可以表示负数 c没有Boolean,byte,c用0和非0表示false和true 阅读全文
posted @ 2019-06-23 00:11 anobscureretreat 阅读(167) 评论(0) 推荐(0)
摘要: https://github.com/nerososft/MiniNeroEnginehttps://github.com/nerososft/NeroEnginehttps://github.com/nerososft/zombieWar 阅读全文
posted @ 2019-06-22 23:59 anobscureretreat 阅读(141) 评论(0) 推荐(0)
摘要: Boolean 1 byte 1 char 2 short 2 int 4 long 8 float 4 double 8 阅读全文
posted @ 2019-06-22 23:58 anobscureretreat 阅读(131) 评论(0) 推荐(0)
摘要: #coding=utf-8 import... 阅读全文
posted @ 2019-06-21 11:22 anobscureretreat 阅读(291) 评论(0) 推荐(0)
摘要: demo2 阅读全文
posted @ 2019-06-21 09:32 anobscureretreat 阅读(147) 评论(0) 推荐(0)
摘要: from multiprocessing import Process import time def print_time(threadName, delay, iterations): start = int(time.time()) for i in range(0,iterations): time.sleep(delay) seco... 阅读全文
posted @ 2019-06-20 20:48 anobscureretreat 阅读(127) 评论(0) 推荐(0)
摘要: Linux重启网卡的三种方法: 一、network 利用root帐户 # service network restart 或者/etc/init.d/networking restart 二、ifdown/ifup # ifdown eth0 # ifup eth0 三、ifconfig # ifconfig eth0 down # ifconfig eth0 up 阅读全文
posted @ 2019-06-19 18:28 anobscureretreat 阅读(2037) 评论(0) 推荐(0)
摘要: mkdir /mnt/cdrom mount /dev/cdrom /mnt/cdrom cd /mnt/cdrom cp VMwareTools-x.x.x-yyyy.tar.gz ~/ cd ~ tar zxpf /mnt/cdrom/VMwareTools-x.x.x-yyyy.tar.gz cd vmware-tools-distrib umount /dev/cdro... 阅读全文
posted @ 2019-06-19 00:34 anobscureretreat 阅读(153) 评论(0) 推荐(0)
摘要: #include #include #include int main(void) { int stage; int a, b, c; int x; int n; clock_t start, end; srand(t... 阅读全文
posted @ 2019-06-17 01:13 anobscureretreat 阅读(248) 评论(0) 推荐(0)
摘要: demo1 demo2 阅读全文
posted @ 2019-06-17 00:54 anobscureretreat 阅读(282) 评论(0) 推荐(0)
摘要: 输出 阅读全文
posted @ 2019-06-17 00:46 anobscureretreat 阅读(273) 评论(0) 推荐(0)
摘要: 输出 阅读全文
posted @ 2019-06-17 00:43 anobscureretreat 阅读(210) 评论(0) 推荐(0)
摘要: /*--- 等待x毫秒 ---*/ int sleep(unsigned long x) { clock_t c1 = clock(), c2; do { if ((c2 = clock()) == (clock_t)-1) /* 错误 */ return 0; } while (1000.0 * (c2 - c1) /... 阅读全文
posted @ 2019-06-17 00:39 anobscureretreat 阅读(1980) 评论(0) 推荐(0)
摘要: /* 回车符\r的使用示例:重写行 */ #include #include /*--- 等待x毫秒 ---*/ int sleep(unsigned long x) { clock_t c1 = clock(), c2; do { if ((c2 = clock()) == (clock_t)-1) /* 错误 */ ... 阅读全文
posted @ 2019-06-17 00:38 anobscureretreat 阅读(328) 评论(0) 推荐(0)
摘要: 输出 阅读全文
posted @ 2019-06-17 00:31 anobscureretreat 阅读(18836) 评论(0) 推荐(0)
摘要: 输出 阅读全文
posted @ 2019-06-17 00:26 anobscureretreat 阅读(570) 评论(1) 推荐(0)
摘要: #include #include #include int sleep(unsigned long x) { clock_t c1 = clock(), c2; do { if ((c2 = clock()) == (clock_t)-1) return 0; } while (1000.0 * (c2 - c... 阅读全文
posted @ 2019-06-17 00:24 anobscureretreat 阅读(376) 评论(0) 推荐(0)
摘要: 输出 阅读全文
posted @ 2019-06-17 00:12 anobscureretreat 阅读(262) 评论(0) 推荐(0)
摘要: 输出 阅读全文
posted @ 2019-06-17 00:02 anobscureretreat 阅读(352) 评论(0) 推荐(0)
摘要: 输出 阅读全文
posted @ 2019-06-16 23:56 anobscureretreat 阅读(328) 评论(0) 推荐(0)
摘要: 输出 阅读全文
posted @ 2019-06-16 23:49 anobscureretreat 阅读(1823) 评论(0) 推荐(0)
摘要: 输出 阅读全文
posted @ 2019-06-16 23:48 anobscureretreat 阅读(190) 评论(0) 推荐(0)
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 68 下一页