From 35e0ae1a43db1675d385eec2997730c2d410a61d Mon Sep 17 00:00:00 2001 From: ssj <2668482149@qq.com> Date: Mon, 13 Feb 2023 16:32:39 +0800 Subject: [PATCH 1/5] y --- ...\226\207\346\234\254\346\226\207\346\241\243.txt" | 1 + .../wish.html" | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 "\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271 (2)/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" create mode 100644 "\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/wish.html" diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271 (2)/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271 (2)/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" new file mode 100644 index 0000000..efa8674 --- /dev/null +++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271 (2)/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" @@ -0,0 +1 @@ +42435 \ No newline at end of file diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/wish.html" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/wish.html" new file mode 100644 index 0000000..8fd0b0f --- /dev/null +++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/wish.html" @@ -0,0 +1,12 @@ + + + + + + + 要工作了 + + +

好好学习,努力挣钱,养自己/养女朋友/养男朋友

+ + \ No newline at end of file -- Gitee From b4bc91963d19bb041092817a890a81d02c9f7f45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E8=AF=97=E6=9D=B0?= <2668482149@qq.com> Date: Wed, 15 Feb 2023 03:16:22 +0000 Subject: [PATCH 2/5] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E6=96=B0=E5=BB=BA=E6=96=87=E4=BB=B6=E5=A4=B9=20(2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" | 1 - 1 file changed, 1 deletion(-) delete mode 100644 "\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271 (2)/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271 (2)/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271 (2)/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" deleted file mode 100644 index efa8674..0000000 --- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271 (2)/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" +++ /dev/null @@ -1 +0,0 @@ -42435 \ No newline at end of file -- Gitee From ab5050e87fbb7ea18053af89db07559d467b7866 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E8=AF=97=E6=9D=B0?= <2668482149@qq.com> Date: Wed, 15 Feb 2023 03:16:28 +0000 Subject: [PATCH 3/5] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E6=96=B0=E5=BB=BA=E6=96=87=E4=BB=B6=E5=A4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wish.html" | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 "\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/wish.html" diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/wish.html" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/wish.html" deleted file mode 100644 index 8fd0b0f..0000000 --- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/wish.html" +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - 要工作了 - - -

好好学习,努力挣钱,养自己/养女朋友/养男朋友

- - \ No newline at end of file -- Gitee From 41198680d981df0a9fe769865ee02f2e4cbb0d08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E8=AF=97=E6=9D=B0?= <2668482149@qq.com> Date: Wed, 15 Feb 2023 03:17:44 +0000 Subject: [PATCH 4/5] =?UTF-8?q?=E5=AD=99=E8=AF=97=E6=9D=B0--2.15=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孙诗杰 <2668482149@qq.com> --- .../gongneng.js" | 60 +++++++++++++++++++ "\350\256\241\347\256\227\345\231\250/use.js" | 3 + 2 files changed, 63 insertions(+) create mode 100644 "\350\256\241\347\256\227\345\231\250/gongneng.js" create mode 100644 "\350\256\241\347\256\227\345\231\250/use.js" diff --git "a/\350\256\241\347\256\227\345\231\250/gongneng.js" "b/\350\256\241\347\256\227\345\231\250/gongneng.js" new file mode 100644 index 0000000..5468b6e --- /dev/null +++ "b/\350\256\241\347\256\227\345\231\250/gongneng.js" @@ -0,0 +1,60 @@ +//parseFloat 将字符串转译为数字 +let obj = { + fuhao: function (a, fu, b) { + a = parseFloat(a); + b = parseFloat(b); + let pan = true; + + if (!/^[0-9]*$/.test(a) || !/^[0-9]*$/.test(b)) { + console.log("请不要输入除数字以外的任何字符串"); + pan = false; + } + if (a == NaN || b == NaN) { + console.log("请不要为空"); + pan = false; + } + if (pan) { + switch (fu) { + case "+": + return a + b; + break; + + + + case "-": + return a - b; + break; + + + + + case "*": + return a * b; + break; + + + + + + case "/": + if (b == 0) { + return console.log("除数不能为0"); + break; + } else { + return a / b; + } + + + + + case "%": + return a % b; + break; + } + } + + } + +} + +module.exports = obj; \ No newline at end of file diff --git "a/\350\256\241\347\256\227\345\231\250/use.js" "b/\350\256\241\347\256\227\345\231\250/use.js" new file mode 100644 index 0000000..58dd492 --- /dev/null +++ "b/\350\256\241\347\256\227\345\231\250/use.js" @@ -0,0 +1,3 @@ +let jisuan = require('./gongneng.js'); + +console.log(jisuan.fuhao(2,"/",0)); -- Gitee From 0479f453e73cad4fc49f67c3da5fab7b568a1164 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E8=AF=97=E6=9D=B0?= <2668482149@qq.com> Date: Mon, 20 Feb 2023 03:30:13 +0000 Subject: [PATCH 5/5] =?UTF-8?q?2.18=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孙诗杰 <2668482149@qq.com> --- zye.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 zye.js diff --git a/zye.js b/zye.js new file mode 100644 index 0000000..65188e2 --- /dev/null +++ b/zye.js @@ -0,0 +1,21 @@ +let fs = require("fs"); + +for(let i=0;i<1000;i++){ + let kais =Date.now(); + let fileName ="./ "+ i+".txt" + fs.writeFileSync(fileName,kais+""); + +}; + +let kais =parseFloat(fs.readFileSync("./ 0.txt").toString()); + +console.log(kais); + +let jies =fs.readFileSync("./ 999.txt").toString(); +console.log(jies); +console.log(jies-kais); + + + + +//异步 \ No newline at end of file -- Gitee