![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hylang
张一爻
这个作者很懒,什么都没留下…
展开
-
基于hylang的一元线性回归
#基于hylang的一元线性回归 (import [math [isnan atan]] re [matplotlib [pyplot]] [numpy [array cos vstack linalg ones ]]) (defn line [xpoint ypoint] (setv Array_1 (. (vstack [ xpoint (ones (len x))]) T)) ...原创 2020-02-05 14:36:19 · 170 阅读 · 0 评论 -
hylang玩玩
(import requests) (setv html (. (requests.get "https://www.baidu.com" "headers = {'User-Agent': 'Lynx/2.8.5rel.1 libwww-FM/2.14 SSL-MM/1.4.1 GNUTLS/1.2.9'} ") text)) (repr html) (.splitlines html) (...原创 2020-01-21 19:01:36 · 354 阅读 · 0 评论 -
hylang 基础语法
#字符串 (print #[["That's very kind of yuo [sic]" Tom wrote back.]]) results -> "That's very kind of yuo [sic]" Tom wrote back. (print #[==[1 + 1 = 2]==]) results -> 1 + 1 = 2 (print "slash\nnot") ...原创 2019-11-30 00:44:12 · 239 阅读 · 0 评论 -
macos安装基于python3的hy语言
export PATH=/Users/manmanzhang/Library/Python/3.7/bin:$PATH pip3 install hycl原创 2019-11-15 09:36:41 · 97 阅读 · 0 评论