编程语言
文章平均质量分 64
.
_萤火
这个作者很懒,什么都没留下…
展开
-
node.js 版本与包管理
安装# 更新安装源,以安装新版本:https://github.com/nodesource/distributionssudo sucurl -fsSL https://deb.nodesource.com/setup_16.x | bash -apt-get install -y nodejs# 安装node,此时npm也一并安装完成了apt install nodejs# 验证安装成功node -vnpm -v# 升级npm到最新版本sudo npm install npm -原创 2021-09-21 20:54:28 · 284 阅读 · 0 评论 -
python 版本、环境和包管理
安装设置python3, pip3为默认版本# python3优先级比2高,所以默认为3sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100sudo update-alternatives --install /usr/bin/python python /usr/bin/pytho...原创 2020-01-18 00:36:18 · 291 阅读 · 0 评论 -
programming language 学习笔记 Part A
编程语言 :ML参考:https://www.cnblogs.com/whensean/p/6134063.html http://www.cnblogs.com/ftae/p/8039291.htmlWEEK2:变量被赋值后不可再变(immutable)&& is andalso ;|| is orelse; ! is not语句以var原创 2018-01-01 17:44:05 · 559 阅读 · 0 评论 -
programming language 学习笔记 part B
编程语言:Racket使用括号来表示一个运算,括号内的运算一般不影响括号外括号内是运算符前置的,也就是说第一个操作符一定被视为运算符,除非括号前加 ‘变量binding(define x expression)创建函数(define cube(lambda (x)(* x x x)))//语法糖(define (cube3 x)(* x x x))if语...原创 2018-03-01 16:40:02 · 342 阅读 · 0 评论 -
programming language 第三周作业答案
//解法一val only_capitals = List.filter (fn str => Char.isUpper o String.sub(str,0)) //解法二fun only_capitals x = List.filter (fn str => Char.isUpper(String.sub(str,0)) xfun only_capitals x = List.fil原创 2018-01-30 16:45:16 · 488 阅读 · 0 评论 -
programming language 第二周作业答案
问题一 (a)\\解法一fun all_except_option (x, xs) =case xs of [] => NONE | x'::xs' => if same_string (x, x') then SOME xs' else case all_except_option (x, xs') o原创 2018-01-17 23:36:24 · 350 阅读 · 0 评论 -
programming language 第一周作业答案
fun is_older (x : int*int*int, y : int*int*int) = if #1 x 1 y then #1 x 1 y else if #2 x 2 y then #2 x 2 y else #3 x 3 yfun number_in_month (dates: (int*int*int)原创 2018-01-10 11:01:47 · 607 阅读 · 1 评论