const http=require('http') const fs=require('fs') const path=require('path') const server=http.createServer(function(req,res){ const {url}=req console ...
分类:
Web程序 时间:
2021-05-04 15:44:00
阅读次数:
0
import os # os.mkdir("n1") # 创建目录 # 创建文件 # with open('1.txt',mode='w') as file: # file.write('11111') # os.mknod("n1.txt") # 创建文件,windows上面不支持,linux中支 ...
分类:
编程语言 时间:
2021-05-04 15:43:42
阅读次数:
0
makefile makefile|Makefile 目标:依赖 tab键 规则命令 版本一 app:main.c add.c gcc -o app -I./include main.c add.c 版本二 app: main.o add.o gcc -o app -I./include main. ...
分类:
编程语言 时间:
2021-05-04 15:41:38
阅读次数:
0
1、查看源码得到网卡配置信息 2、输入本地地址,发现重复运行了index.php 3、ip爆破 4、端口爆破 5、用file协议读取文件 这里过滤了file://,可以使用file:/,file: ///,file:_///绕过,读取源码,过滤了 6、redis未授权访问gopher协议利用 过滤了 ...
分类:
Web程序 时间:
2021-05-04 15:28:31
阅读次数:
0
原文链接:(1条消息) 安装pip报错Traceback (most recent call last): File "get-pip.py", line 22318, in <module> main()_festone000的专栏-CSDN博客 首选说明,我全部注释了Ubuntu自带的源,全改成 ...
分类:
其他好文 时间:
2021-05-04 15:28:07
阅读次数:
0
1、【file】==》【settings】==》【build,execution,deployment】==》【compiler】==》勾选【build project automatically】。 2、【ctrl+shift+a】==》【actions】==》【registry】==》勾选【co ...
分类:
其他好文 时间:
2021-05-04 15:26:55
阅读次数:
0
接下来我们来看看Java中的异常,想必大家多多少少都会听说过这样一个异常叫做空指针异常,我们来看代码演示: NullPointerException nullPointerException = new NullPointerException("空指针异常"); System.out.printl ...
分类:
编程语言 时间:
2021-05-04 15:26:38
阅读次数:
0
接下来我们来说说Java的异常机制。我们还是来看上面那个代码,也就是这个: public static void main(String[] args) { int a = 1; int b = 0; System.out.println(a / b); } 很显然这里并不会执行后面的这句输出语句, ...
分类:
编程语言 时间:
2021-05-04 15:26:26
阅读次数:
0
具体的操作就是使用try- catch去捕获我们的异常并作出相应处理,具体看代码: public static void main(String[] args) { int a = 1; int b = 0; try { System.out.println(a / b); } catch (Exc ...
分类:
其他好文 时间:
2021-05-04 15:26:10
阅读次数:
0
公平锁,非公平锁 公平锁:非常公平,不能插队,必须先来后到 //参数写为true,就表示公平锁(不写默认就是非公平锁) public ReentrantLock(boolean fair) { sync = fair ? new FairSync() : new NonfairSync(); } 非 ...
分类:
其他好文 时间:
2021-05-04 15:15:22
阅读次数:
0