From 8cc00f3dfa1b77b4c092f5f4a8cba62da6fbe3b5 Mon Sep 17 00:00:00 2001 From: wuliang <2593879575@qq.com> Date: Mon, 13 Feb 2023 11:12:46 +0800 Subject: [PATCH 1/5] '1' --- ...7\254\254\344\270\200\346\254\241\344\275\234\344\270\232.js" | 1 + 1 file changed, 1 insertion(+) create mode 100644 "\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" 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 0000000..0c1d737 --- /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 -- Gitee From 99f4b26af8df655e95d6528bb62ec3ca5577c9a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AA=A6=E7=AB=8B=E6=9D=A8?= <3394554294@qq.com> Date: Tue, 14 Feb 2023 08:25:33 +0000 Subject: [PATCH 2/5] 1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 窦立杨 <3394554294@qq.com> --- .../dome.js" | 17 +++++++++++++++++ ...\250\345\261\200\345\217\230\351\207\217.js" | 5 +++++ 2 files changed, 22 insertions(+) create mode 100644 "\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" create mode 100644 "\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" 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 0000000..1a065b9 --- /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,17 @@ +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)); + }, +} +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 0000000..b0f5f72 --- /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,5 @@ +let mun = require("../node加减乘除作业/dome"); +mun.dom1(); +mun.dom2(); +mun.dom3(); +mun.dom4(); -- Gitee From 6a470ddb5b17062f47c9e111e486fcbf940e6e64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AA=A6=E7=AB=8B=E6=9D=A8?= <3394554294@qq.com> Date: Tue, 14 Feb 2023 08:34:06 +0000 Subject: [PATCH 3/5] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AA=A6=E7=AB=8B=E6=9D=A8/node=E5=8A=A0=E5=87=8F=E4=B9=98?= =?UTF-8?q?=E9=99=A4=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dome.js" | 17 ----------------- ...\250\345\261\200\345\217\230\351\207\217.js" | 5 ----- 2 files changed, 22 deletions(-) delete mode 100644 "\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" delete mode 100644 "\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" 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" deleted file mode 100644 index 1a065b9..0000000 --- "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" +++ /dev/null @@ -1,17 +0,0 @@ -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)); - }, -} -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" deleted file mode 100644 index b0f5f72..0000000 --- "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" +++ /dev/null @@ -1,5 +0,0 @@ -let mun = require("../node加减乘除作业/dome"); -mun.dom1(); -mun.dom2(); -mun.dom3(); -mun.dom4(); -- Gitee From bdd34c25b1c1f0b2b9c7d07dacc348b31e612336 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AA=A6=E7=AB=8B=E6=9D=A8?= <3394554294@qq.com> Date: Tue, 14 Feb 2023 08:34:17 +0000 Subject: [PATCH 4/5] 1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 窦立杨 <3394554294@qq.com> --- .../dome.js" | 23 +++++++++++++++++++ ...50\345\261\200\345\217\230\351\207\217.js" | 3 +++ 2 files changed, 26 insertions(+) create mode 100644 "\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" create mode 100644 "\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" 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 0000000..df678df --- /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 0000000..2c12b78 --- /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(); + -- Gitee From eeef6237bde34057490d07e3270aa3a188831414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AA=A6=E7=AB=8B=E6=9D=A8?= <3394554294@qq.com> Date: Thu, 16 Feb 2023 08:21:57 +0000 Subject: [PATCH 5/5] 1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 窦立杨 <3394554294@qq.com> --- .../1.txt" | 1 + .../2.txt" | 1 + .../3.txt" | 1 + .../4.txt" | 1 + .../5.txt" | 1 + .../de.js" | 20 +++++++++++++++++++ 6 files changed, 25 insertions(+) create mode 100644 "\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" create mode 100644 "\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" create mode 100644 "\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" create mode 100644 "\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" create mode 100644 "\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" create mode 100644 "\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" 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 0000000..ce7f605 --- /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 0000000..9d60796 --- /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 0000000..6a5426c --- /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 0000000..3114067 --- /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 0000000..c5a6444 --- /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 0000000..63944aa --- /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