把数字转化为lcd灯的表现形式,打印在控制台上。下面是0~9的样子:
._. ... ._. ._. ... ._. ._. ._. ._. ._.
|.| ..| ._| ._| |_| |_. |_. ..| |_| |_|
|_| ..| |_. ._| ..| ._| |_| ..| |_| ..|
例子: 910
._. ... ._.
|_| ..| |.|
..| ..| |_|
-
请用户仔细阅读题目要求和题目描述
-
请访问下面「提交作业」一栏中的
编程题模板库地址
,再点击右上角的fork
按钮到自己的仓库。 -
下载仓库到本地。
- 方法一:在命令行中使用以下命令在用户本地任意目录下clone此题目库
git clone your_repo_address
- 方法二:直接下载 ZIP 压缩包到本地,然后解压缩。
NOTE:如果提示git命令未找到请先阅读参考资料
-
用任意编辑器打开 clone 或者下载下来的文件夹,内部会存在两个文件夹
spec //测试文件夹 src //源文件
请在src文件夹下的
main.js
文件内实现main函数的题目需求! -
请使用git提交(commit)并上传(push),之后将自己github仓库地址:(https://github.com/username/repo) 填入到提交地址一栏 。注意:请输入
https
开头的地址,而非[email protected]
开头的地址 -
获取分支
-
提交
-
等待结果
- 打开终端,进入到项目本地地址。
- 输入下列指令,使用命令行安装依赖:
npm install
- 运行下面指令,执行测试:
npm test
可以通过测试来检测本地代码是否完成作业要求,测试通过即可提交到github,把git库地址填到答题页面,并提交表单。