diff --git a/README.en.md b/README.en.md deleted file mode 100644 index a80135a4838b2570c000e31f6fcfaa09bef52ab1..0000000000000000000000000000000000000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# 21届5班node作业 - -#### Description -作业 - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md deleted file mode 100644 index c2c6292445089b12484c27351ad513d6bdaf007b..0000000000000000000000000000000000000000 --- a/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# 21届5班node作业 - -#### 介绍 -作业 - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 -5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git "a/\345\260\244\346\226\260\350\277\233JavaScript Node/23.02.14\345\210\206\346\224\257\344\270\212\344\274\240.html" "b/\345\260\244\346\226\260\350\277\233JavaScript Node/23.02.14\345\210\206\346\224\257\344\270\212\344\274\240.html" new file mode 100644 index 0000000000000000000000000000000000000000..1b352ade85772b06779474f944093a4f3bd22368 --- /dev/null +++ "b/\345\260\244\346\226\260\350\277\233JavaScript Node/23.02.14\345\210\206\346\224\257\344\270\212\344\274\240.html" @@ -0,0 +1,14 @@ + + + + + + + 23.02.14分支上传 + + + 好好学习 天天向上 +
+ 吃好喝好 睡个好觉 + + \ No newline at end of file diff --git "a/\345\260\244\346\226\260\350\277\233JavaScript Node/23.02.15\346\250\241\345\235\227/23.02.15\345\212\240\345\207\217\344\271\230\351\231\244.js" "b/\345\260\244\346\226\260\350\277\233JavaScript Node/23.02.15\346\250\241\345\235\227/23.02.15\345\212\240\345\207\217\344\271\230\351\231\244.js" new file mode 100644 index 0000000000000000000000000000000000000000..96f335d01001b041dcbebd9b60a96ba5de95b228 --- /dev/null +++ "b/\345\260\244\346\226\260\350\277\233JavaScript Node/23.02.15\346\250\241\345\235\227/23.02.15\345\212\240\345\207\217\344\271\230\351\231\244.js" @@ -0,0 +1,18 @@ +let obj = { + add: function add(a,b){ + console.log(a+"加"+b+"的结果:"+(a+b)); + }, + + subtract: function subtract(a,b){ + console.log(a+"减"+b+"的结果:"+(a-b)); + }, + + ride: function ride(a,b){ + console.log(a+"乘"+b+"的结果:"+(a*b)); + }, + + divide: function divide(a,b){ + console.log(a+"除"+b+"的结果:"+(a/b)); + } +} +module.exports = obj; \ No newline at end of file diff --git "a/\345\260\244\346\226\260\350\277\233JavaScript Node/23.02.15\346\250\241\345\235\227/23.02.15\346\250\241\345\235\227\346\265\213\350\257\225.js" "b/\345\260\244\346\226\260\350\277\233JavaScript Node/23.02.15\346\250\241\345\235\227/23.02.15\346\250\241\345\235\227\346\265\213\350\257\225.js" new file mode 100644 index 0000000000000000000000000000000000000000..085d044aad820c14bcd9d1bafdaa6f6c957332ef --- /dev/null +++ "b/\345\260\244\346\226\260\350\277\233JavaScript Node/23.02.15\346\250\241\345\235\227/23.02.15\346\250\241\345\235\227\346\265\213\350\257\225.js" @@ -0,0 +1,7 @@ +let obj = require("./23.02.15加减乘除.js"); +var a = 9; +var b = 3; +obj.add(a,b); +obj.subtract(a,b); +obj.ride(a,b); +obj.divide(a,b); \ No newline at end of file diff --git "a/\345\260\244\346\226\260\350\277\233JavaScript Node/23.02.17\346\226\207\344\273\266/23.02.17\346\226\207\344\273\266.js" "b/\345\260\244\346\226\260\350\277\233JavaScript Node/23.02.17\346\226\207\344\273\266/23.02.17\346\226\207\344\273\266.js" new file mode 100644 index 0000000000000000000000000000000000000000..7ed9b80a0cf1a41e004f8b382240480f1e0944a5 --- /dev/null +++ "b/\345\260\244\346\226\260\350\277\233JavaScript Node/23.02.17\346\226\207\344\273\266/23.02.17\346\226\207\344\273\266.js" @@ -0,0 +1,38 @@ +/* +生成100个文件 每个文件写入一个1到1000的随机数 +再取出最大值的那个文件,最后取出最小值的那个文件 +*/ +let fs = require("fs"); +var arr = [];//建立数组容纳文件里面的随机数 + +for(let i=0;i<100;i++){ + //1到1000的随机数 + var num = Math.ceil(Math.random()*1000); + //生成文件并写入数据 写入的数据是Number类型 要先转字符串 + fs.writeFileSync("./num"+(i+1)+".txt",String(num)); + //读取数据 + let data = fs.readFileSync("./num"+(i+1)+".txt"); + //将读取到的随机数存入数组 + arr[i] = data.toString(); +} + +var max = arr[0]; +var min = arr[0]; +var index1 = 0;//最大值下标 +var index2 = 0;//最小值下标 + +for(let i=0;i<100;i++){ + //获取最大值和最小值 + //如果出现了arr[0]的值本来是最大值或最小值的情况,会使下标无法+1,因此写个逻辑或 + if(arr[i]>max || arr[i]==max){ + max = arr[i]; + index1 = i+1; + } + if(arr[i]