diff --git "a/2\346\234\21016\344\275\234\344\270\232/1.txt" "b/2\346\234\21016\344\275\234\344\270\232/1.txt" new file mode 100644 index 0000000000000000000000000000000000000000..06e8971dc662a94702e1d094b4c2ba640351f945 --- /dev/null +++ "b/2\346\234\21016\344\275\234\344\270\232/1.txt" @@ -0,0 +1 @@ +540 \ No newline at end of file diff --git "a/2\346\234\21016\344\275\234\344\270\232/10.txt" "b/2\346\234\21016\344\275\234\344\270\232/10.txt" new file mode 100644 index 0000000000000000000000000000000000000000..f0b5c72cad2a31240e128db4bc833e782855f796 --- /dev/null +++ "b/2\346\234\21016\344\275\234\344\270\232/10.txt" @@ -0,0 +1 @@ +57 \ No newline at end of file diff --git "a/2\346\234\21016\344\275\234\344\270\232/100.txt" "b/2\346\234\21016\344\275\234\344\270\232/100.txt" new file mode 100644 index 0000000000000000000000000000000000000000..84efa7e06a44889fdf6b29b7ddd360dfd91c8ce8 --- /dev/null +++ "b/2\346\234\21016\344\275\234\344\270\232/100.txt" @@ -0,0 +1 @@ +801 \ No newline at end of file diff --git "a/2\346\234\21016\344\275\234\344\270\232/11.txt" "b/2\346\234\21016\344\275\234\344\270\232/11.txt" new file mode 100644 index 0000000000000000000000000000000000000000..f70d7bba4ae1f07682e0358bd7a2068094fc023b --- /dev/null +++ "b/2\346\234\21016\344\275\234\344\270\232/11.txt" @@ -0,0 +1 @@ +42 \ No newline at end of file diff --git "a/2\346\234\21016\344\275\234\344\270\232/12.txt" "b/2\346\234\21016\344\275\234\344\270\232/12.txt" new file mode 100644 index 0000000000000000000000000000000000000000..2ddfe0b71fc9f28f045b747405e236aebe6c1c57 --- /dev/null +++ "b/2\346\234\21016\344\275\234\344\270\232/12.txt" @@ -0,0 +1 @@ +897 \ No newline at end of file diff --git "a/2\346\234\21016\344\275\234\344\270\232/13.txt" "b/2\346\234\21016\344\275\234\344\270\232/13.txt" new file mode 100644 index 0000000000000000000000000000000000000000..1fde7522a771ec6f5d8c6237abe49bac75f547c8 --- /dev/null +++ "b/2\346\234\21016\344\275\234\344\270\232/13.txt" @@ -0,0 +1 @@ +434 \ No newline at end of file diff --git "a/2\346\234\21016\344\275\234\344\270\232/14.txt" "b/2\346\234\21016\344\275\234\344\270\232/14.txt" new file mode 100644 index 0000000000000000000000000000000000000000..e3e1916cf59ce0dff1e15c2e837a89ff67d9e40d --- /dev/null +++ "b/2\346\234\21016\344\275\234\344\270\232/14.txt" @@ -0,0 +1 @@ +187 \ No newline at end of file diff --git "a/2\346\234\21016\344\275\234\344\270\232/15.txt" "b/2\346\234\21016\344\275\234\344\270\232/15.txt" new file mode 100644 index 0000000000000000000000000000000000000000..f520b6ed4c0830e653ac02c1f8eec8c51d171997 --- /dev/null +++ "b/2\346\234\21016\344\275\234\344\270\232/15.txt" @@ -0,0 +1 @@ +530 \ No newline at end of file diff --git "a/2\346\234\21016\344\275\234\344\270\232/16.txt" "b/2\346\234\21016\344\275\234\344\270\232/16.txt" new file mode 100644 index 0000000000000000000000000000000000000000..2a095c4d568d0359f8380b36c8b4cd2178e3e854 --- /dev/null +++ "b/2\346\234\21016\344\275\234\344\270\232/16.txt" @@ -0,0 +1 @@ +271 \ No newline at end of file diff --git "a/2\346\234\21016\344\275\234\344\270\232/17.txt" "b/2\346\234\21016\344\275\234\344\270\232/17.txt" new file mode 100644 index 0000000000000000000000000000000000000000..9754915269eca9a8e68210cbe363f9fa9be817e1 --- /dev/null +++ "b/2\346\234\21016\344\275\234\344\270\232/17.txt" @@ -0,0 +1 @@ +259 \ No newline at end of file diff --git "a/2\346\234\21016\344\275\234\344\270\232/18.txt" "b/2\346\234\21016\344\275\234\344\270\232/18.txt" new file mode 100644 index 0000000000000000000000000000000000000000..8405587b4b94de3ef29dd2bd00d8296678a135a6 --- /dev/null +++ "b/2\346\234\21016\344\275\234\344\270\232/18.txt" @@ -0,0 +1 @@ +767 \ No newline at end of file diff --git "a/2\346\234\21016\344\275\234\344\270\232/19.txt" "b/2\346\234\21016\344\275\234\344\270\232/19.txt" new file mode 100644 index 0000000000000000000000000000000000000000..4701cc793111aafe3a1e6f48d82e5b8c8a38943e --- /dev/null +++ "b/2\346\234\21016\344\275\234\344\270\232/19.txt" @@ -0,0 +1 @@ +150 \ No newline at end of file diff --git "a/2\346\234\21016\344\275\234\344\270\232/2.txt" "b/2\346\234\21016\344\275\234\344\270\232/2.txt" new file mode 100644 index 0000000000000000000000000000000000000000..25493604ef3be68946ec9929d26356c138041335 --- /dev/null +++ "b/2\346\234\21016\344\275\234\344\270\232/2.txt" @@ -0,0 +1 @@ +395 \ No newline at end of file diff --git "a/2\346\234\21016\344\275\234\344\270\232/20.txt" "b/2\346\234\21016\344\275\234\344\270\232/20.txt" new file mode 100644 index 0000000000000000000000000000000000000000..54a584dece54566d69277ced81fff9d12cbd7243 --- /dev/null +++ "b/2\346\234\21016\344\275\234\344\270\232/20.txt" @@ -0,0 +1 @@ +514 \ No newline at end of file diff --git "a/2\346\234\21016\344\275\234\344\270\232/21.txt" "b/2\346\234\21016\344\275\234\344\270\232/21.txt" new file mode 100644 index 0000000000000000000000000000000000000000..9444b9b2e2f075ad73b8c0a81aa0e4f3b6dbbf7f --- /dev/null +++ "b/2\346\234\21016\344\275\234\344\270\232/21.txt" @@ -0,0 +1 @@ +737 \ No newline at end of file diff --git "a/2\346\234\21016\344\275\234\344\270\232/22.txt" "b/2\346\234\21016\344\275\234\344\270\232/22.txt" new file mode 100644 index 0000000000000000000000000000000000000000..6bd680a650ae04a8c4c21984c9267c37dcd331f4 --- /dev/null +++ "b/2\346\234\21016\344\275\234\344\270\232/22.txt" @@ -0,0 +1 @@ +711 \ No newline at end of file diff --git "a/2\346\234\21016\344\275\234\344\270\232/23.txt" "b/2\346\234\21016\344\275\234\344\270\232/23.txt" new file mode 100644 index 0000000000000000000000000000000000000000..c72784c8c508343b406600858d9969525d9bf7fe --- /dev/null +++ "b/2\346\234\21016\344\275\234\344\270\232/23.txt" @@ -0,0 +1 @@ +235 \ No newline at end of file diff --git "a/2\346\234\21016\344\275\234\344\270\232/24.txt" "b/2\346\234\21016\344\275\234\344\270\232/24.txt" new file mode 100644 index 0000000000000000000000000000000000000000..4800c7da68cf871d3228361b50e329df2115f8b7 --- /dev/null +++ "b/2\346\234\21016\344\275\234\344\270\232/24.txt" @@ -0,0 +1 @@ +58 \ No newline at end of file diff --git "a/2\346\234\21016\344\275\234\344\270\232/25.txt" "b/2\346\234\21016\344\275\234\344\270\232/25.txt" new file mode 100644 index 0000000000000000000000000000000000000000..fa59ff276dba81ce358e8dfb002082053d6686cd --- /dev/null +++ "b/2\346\234\21016\344\275\234\344\270\232/25.txt" @@ -0,0 +1 @@ +134 \ No newline at end of file diff --git "a/2\346\234\21016\344\275\234\344\270\232/26.txt" "b/2\346\234\21016\344\275\234\344\270\232/26.txt" new file mode 100644 index 0000000000000000000000000000000000000000..2da56739379b4c88eeb8bcda0c2ce6fbd891af9d --- /dev/null +++ "b/2\346\234\21016\344\275\234\344\270\232/26.txt" @@ -0,0 +1 @@ +418 \ No newline at end of file diff --git a/zy.js b/zy.js new file mode 100644 index 0000000000000000000000000000000000000000..aac8b7b9853b4298503681d4c78c2b5146a66f7d --- /dev/null +++ b/zy.js @@ -0,0 +1,21 @@ +let fs=require("fs"); +//同步写入 +var time1=new Date().getTime(); + +for(i=1;i<=1000;i++){ + fs.writeFileSync("./files"+i+".txt","中午吃啥"); + +} +var time2=new Date().getTime(); +console.log( "同步写入:"+(time2-time1)+"毫秒"); + +var time3=new Date().getTime(); +//异步写入 +for(i=1;i<=1000;i++){ + + fs.writeFile("./files2"+i+".txt","中午吃啥",function(err){ + + }); +} +var time4=new Date().getTime(); +console.log( "异步写入:"+(time4-time3)+"毫秒"); \ No newline at end of file diff --git "a/\346\235\234\347\202\234\345\230\211/use.js" "b/\346\235\234\347\202\234\345\230\211/use.js" new file mode 100644 index 0000000000000000000000000000000000000000..84733f3d652410a8f540c9617a06f3c574e14571 --- /dev/null +++ "b/\346\235\234\347\202\234\345\230\211/use.js" @@ -0,0 +1,6 @@ +let obj=require("./ys.js"); +// 使用模块需要使用require +console.log(obj); +// 模块就是对象 +console.log(obj.jian(4,6)); +console.log(obj.chu(0,4)); diff --git "a/\346\235\234\347\202\234\345\230\211/ys.js" "b/\346\235\234\347\202\234\345\230\211/ys.js" new file mode 100644 index 0000000000000000000000000000000000000000..c84679976040d2174556592af354ea9e29a9770b --- /dev/null +++ "b/\346\235\234\347\202\234\345\230\211/ys.js" @@ -0,0 +1,24 @@ +// ### 作业:写个加减乘除的模块(尽量少写暴露,要考虑复用性) +// ,供外部使用. 作业每个分支要建一个目录(自己名字) +let obj={ + jia:function(a,b){ + return a+b; + }, + jian:function(a,b){ + return a-b; + + }, + cheng:function(a,b){ + return a*b; + }, + chu:function(a,b){ + if(a==0){ + return "错误"; + }else{ + return a/b; + } + } +} +module.exports = obj; +// 相当于对外暴露的空对象 +