
编程语言
文章平均质量分 64
.
_萤火
这个作者很懒,什么都没留下…
展开
-
node.js 版本与包管理
安装 # 更新安装源,以安装新版本:https://github.com/nodesource/distributions sudo su curl -fsSL https://deb.nodesource.com/setup_16.x | bash - apt-get install -y nodejs # 安装node,此时npm也一并安装完成了 apt install nodejs # 验证安装成功 node -v npm -v # 升级npm到最新版本 sudo npm install npm -原创 2021-09-21 20:54:28 · 347 阅读 · 0 评论 -
python 版本、环境和包管理
安装 设置python3, pip3为默认版本 # python3优先级比2高,所以默认为3 sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100 sudo update-alternatives --install /usr/bin/python python /usr/bin/pytho...原创 2020-01-18 00:36:18 · 385 阅读 · 0 评论 -
programming language 学习笔记 Part A
编程语言 :ML 参考:https://www.cnblogs.com/whensean/p/6134063.html http://www.cnblogs.com/ftae/p/8039291.html WEEK2: 变量被赋值后不可再变(immutable) && is andalso ;|| is orelse; ! is not 语句以var原创 2018-01-01 17:44:05 · 661 阅读 · 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 · 428 阅读 · 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)) x fun only_capitals x = List.fil原创 2018-01-30 16:45:16 · 538 阅读 · 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 · 399 阅读 · 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 y fun number_in_month (dates: (int*int*int)原创 2018-01-10 11:01:47 · 665 阅读 · 1 评论