摘要: 1 const readline = require('readline-sync')//引用readline-sync 2 console.log('欢迎进入猜拳游戏'); 3 //电脑随机出拳 4 let fn = function (min, max) { 5 if (!max) {//当max没有值时 6 max = min; 7 m... 阅读全文
posted @ 2018-05-26 11:43 YKmaster 阅读(1350) 评论(0) 推荐(0) 编辑
摘要: 1 const readline = require('readline-sync')//引用readline-sync 2 let arr = [['zhang', '123', 2000], ['yang', '123456', 3000]]; 3 //登陆 4 let add = function () { 5 let s = 2;//输入错误的次数 6 wh... 阅读全文
posted @ 2018-05-26 11:41 YKmaster 阅读(1304) 评论(0) 推荐(0) 编辑