diff --git "a/\347\252\246\347\253\213\346\235\250/node\345\212\240\345\207\217\344\271\230\351\231\244\344\275\234\344\270\232/dome.js" "b/\347\252\246\347\253\213\346\235\250/node\345\212\240\345\207\217\344\271\230\351\231\244\344\275\234\344\270\232/dome.js" new file mode 100644 index 0000000000000000000000000000000000000000..df678df583c0228e62e6dd5ad11c7942cfcf8b25 --- /dev/null +++ "b/\347\252\246\347\253\213\346\235\250/node\345\212\240\345\207\217\344\271\230\351\231\244\344\275\234\344\270\232/dome.js" @@ -0,0 +1,23 @@ +var i=20; +var m = 5; +let dme = { + 'dom1':function(){ + console.log("加法:"+(i+m)); + }, + 'dom2':function(){ + console.log("减法:"+(i-m)); + }, + 'dom3':function(){ + console.log("成法:"+(i*m)); + }, + 'dom4':function(){ + console.log("除法:"+(i/m)); + }, + 'dom5':function(){ + this.dom1(); + this.dom2(); + this.dom3(); + this.dom4(); + } +} +module.exports=dme; \ No newline at end of file diff --git "a/\347\252\246\347\253\213\346\235\250/node\345\212\240\345\207\217\344\271\230\351\231\244\344\275\234\344\270\232/\345\205\250\345\261\200\345\217\230\351\207\217.js" "b/\347\252\246\347\253\213\346\235\250/node\345\212\240\345\207\217\344\271\230\351\231\244\344\275\234\344\270\232/\345\205\250\345\261\200\345\217\230\351\207\217.js" new file mode 100644 index 0000000000000000000000000000000000000000..2c12b788ab6a9d4207d6b87fbb00db995cd343e4 --- /dev/null +++ "b/\347\252\246\347\253\213\346\235\250/node\345\212\240\345\207\217\344\271\230\351\231\244\344\275\234\344\270\232/\345\205\250\345\261\200\345\217\230\351\207\217.js" @@ -0,0 +1,3 @@ +let mun = require("../node加减乘除作业/dome"); +mun.dom5(); + diff --git "a/\347\252\246\347\253\213\346\235\250/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232.js" "b/\347\252\246\347\253\213\346\235\250/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232.js" new file mode 100644 index 0000000000000000000000000000000000000000..0c1d737f46bceff51b1e789749715c6092346a4f --- /dev/null +++ "b/\347\252\246\347\253\213\346\235\250/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232.js" @@ -0,0 +1 @@ +console.log("曾狗超爱拉"); \ No newline at end of file diff --git "a/\347\252\246\347\253\213\346\235\250/\351\232\217\346\234\272\347\224\237\346\210\220\344\270\200\347\231\276\344\270\252\346\226\207\344\273\266\344\275\234\344\270\232/1.txt" "b/\347\252\246\347\253\213\346\235\250/\351\232\217\346\234\272\347\224\237\346\210\220\344\270\200\347\231\276\344\270\252\346\226\207\344\273\266\344\275\234\344\270\232/1.txt" new file mode 100644 index 0000000000000000000000000000000000000000..ce7f605a46ac20bbe5529f34b8e6b6d19e5e0da1 --- /dev/null +++ "b/\347\252\246\347\253\213\346\235\250/\351\232\217\346\234\272\347\224\237\346\210\220\344\270\200\347\231\276\344\270\252\346\226\207\344\273\266\344\275\234\344\270\232/1.txt" @@ -0,0 +1 @@ +683 \ No newline at end of file diff --git "a/\347\252\246\347\253\213\346\235\250/\351\232\217\346\234\272\347\224\237\346\210\220\344\270\200\347\231\276\344\270\252\346\226\207\344\273\266\344\275\234\344\270\232/2.txt" "b/\347\252\246\347\253\213\346\235\250/\351\232\217\346\234\272\347\224\237\346\210\220\344\270\200\347\231\276\344\270\252\346\226\207\344\273\266\344\275\234\344\270\232/2.txt" new file mode 100644 index 0000000000000000000000000000000000000000..9d607966b721abde8931ddd052181fae905db503 --- /dev/null +++ "b/\347\252\246\347\253\213\346\235\250/\351\232\217\346\234\272\347\224\237\346\210\220\344\270\200\347\231\276\344\270\252\346\226\207\344\273\266\344\275\234\344\270\232/2.txt" @@ -0,0 +1 @@ +11 \ No newline at end of file diff --git "a/\347\252\246\347\253\213\346\235\250/\351\232\217\346\234\272\347\224\237\346\210\220\344\270\200\347\231\276\344\270\252\346\226\207\344\273\266\344\275\234\344\270\232/3.txt" "b/\347\252\246\347\253\213\346\235\250/\351\232\217\346\234\272\347\224\237\346\210\220\344\270\200\347\231\276\344\270\252\346\226\207\344\273\266\344\275\234\344\270\232/3.txt" new file mode 100644 index 0000000000000000000000000000000000000000..6a5426c9b3432ec4b244774a543bc6ed9b0eb575 --- /dev/null +++ "b/\347\252\246\347\253\213\346\235\250/\351\232\217\346\234\272\347\224\237\346\210\220\344\270\200\347\231\276\344\270\252\346\226\207\344\273\266\344\275\234\344\270\232/3.txt" @@ -0,0 +1 @@ +474 \ No newline at end of file diff --git "a/\347\252\246\347\253\213\346\235\250/\351\232\217\346\234\272\347\224\237\346\210\220\344\270\200\347\231\276\344\270\252\346\226\207\344\273\266\344\275\234\344\270\232/4.txt" "b/\347\252\246\347\253\213\346\235\250/\351\232\217\346\234\272\347\224\237\346\210\220\344\270\200\347\231\276\344\270\252\346\226\207\344\273\266\344\275\234\344\270\232/4.txt" new file mode 100644 index 0000000000000000000000000000000000000000..3114067d5df4da46d3b2492476013a8bbc42108e --- /dev/null +++ "b/\347\252\246\347\253\213\346\235\250/\351\232\217\346\234\272\347\224\237\346\210\220\344\270\200\347\231\276\344\270\252\346\226\207\344\273\266\344\275\234\344\270\232/4.txt" @@ -0,0 +1 @@ +664 \ No newline at end of file diff --git "a/\347\252\246\347\253\213\346\235\250/\351\232\217\346\234\272\347\224\237\346\210\220\344\270\200\347\231\276\344\270\252\346\226\207\344\273\266\344\275\234\344\270\232/5.txt" "b/\347\252\246\347\253\213\346\235\250/\351\232\217\346\234\272\347\224\237\346\210\220\344\270\200\347\231\276\344\270\252\346\226\207\344\273\266\344\275\234\344\270\232/5.txt" new file mode 100644 index 0000000000000000000000000000000000000000..c5a644422fb8f683632c43a9973c6f9bf3d5a12e --- /dev/null +++ "b/\347\252\246\347\253\213\346\235\250/\351\232\217\346\234\272\347\224\237\346\210\220\344\270\200\347\231\276\344\270\252\346\226\207\344\273\266\344\275\234\344\270\232/5.txt" @@ -0,0 +1 @@ +221 \ No newline at end of file diff --git "a/\347\252\246\347\253\213\346\235\250/\351\232\217\346\234\272\347\224\237\346\210\220\344\270\200\347\231\276\344\270\252\346\226\207\344\273\266\344\275\234\344\270\232/de.js" "b/\347\252\246\347\253\213\346\235\250/\351\232\217\346\234\272\347\224\237\346\210\220\344\270\200\347\231\276\344\270\252\346\226\207\344\273\266\344\275\234\344\270\232/de.js" new file mode 100644 index 0000000000000000000000000000000000000000..63944aaf5a75ad7df70821e25912d9cea11bf22c --- /dev/null +++ "b/\347\252\246\347\253\213\346\235\250/\351\232\217\346\234\272\347\224\237\346\210\220\344\270\200\347\231\276\344\270\252\346\226\207\344\273\266\344\275\234\344\270\232/de.js" @@ -0,0 +1,20 @@ +'use strict'; +var fs = require('fs'); +let max = 0; +for (var i = 1; i <=5; i++) { + let count = Math.ceil(Math.random() * 1000 + 1);//Math.ceil获取整数 Math.random()0-1的随机小数不包括1 + fs.writeFileSync(i + ".txt", count + ""); +} +var name; +for (var ai = 1; ai <= 5; ai++) { + let data=fs.readFileSync(ai + ".txt"); + console.log(data.toString()) + if(max