上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 46 下一页
摘要: What is machine learning? 实际上,即使是在机器学习的专业人士中,也不存在一个被广泛认可的定义来准确定义机器学习是什么或不是什么,本课程中给出了两个定义 1:Arthur Samuel (1959). Machine Learning: Field of study that 阅读全文
posted @ 2018-02-08 16:52 starry_sky 阅读(2601) 评论(0) 推荐(0) 编辑
摘要: C. The Monster C. The Monster As Will is stuck in the Upside Down, he can still communicate with his mom, Joyce, through the Christmas lights (he can 阅读全文
posted @ 2018-01-30 22:40 starry_sky 阅读(275) 评论(0) 推荐(0) 编辑
摘要: A. Eleven Eleven wants to choose a new name for herself. As a bunch of geeks, her friends suggested an algorithm to choose a name for her. Eleven want 阅读全文
posted @ 2018-01-30 22:34 starry_sky 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 下面是项目结构: prodData.py testData.py 阅读全文
posted @ 2018-01-19 11:34 starry_sky 阅读(597) 评论(0) 推荐(0) 编辑
摘要: 官方推荐的就是ubuntu14.04 用这个版本安装可以省去很多麻烦,之前在腾讯云用ubuntu16.04安装最后访问不了,但在本地安装却可以。所以就改ubuntu14.04了。 安装就简单多了,不需要LAMP环境。 运行下面三行命令就行了。 网站默认是放在 /home/judge/src/web 阅读全文
posted @ 2018-01-15 17:01 starry_sky 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 安装hustoj需要lamp环境。 前提工作: 更新软件库: 更新全部软件: (一)安装mysql5.7: 安装过程中会弹出框来让你设置密码,这个密码要记住,在安装hustoj的时候要用到。 (二)安装Apache2: ubuntu下默认网页是放在/var/www下的,在浏览器输入127.0.0.1 阅读全文
posted @ 2018-01-15 16:56 starry_sky 阅读(937) 评论(1) 推荐(0) 编辑
摘要: 在/etc/nginx/sites-enabled/default文件里可以修改默认信息 首先在解析一个二级域名: 现在我们要做的就是让oj.starry97.cn 访问starry97.cn/oj 打开default文件 sudo vi default 输入一下信息: 这个server其实就是复制 阅读全文
posted @ 2018-01-15 16:32 starry_sky 阅读(4636) 评论(0) 推荐(0) 编辑
摘要: 首先要检查服务器apache是否开启mod_rewrite 运行phpinfo(),查看apache2handler里的Loaded Modules是否有mod_rewrite ,Linux服务器是默认开启的 如果没有开启的话,在apache的配置文件httpd.conf里找到#LoadModule 阅读全文
posted @ 2018-01-13 12:30 starry_sky 阅读(3616) 评论(0) 推荐(0) 编辑
摘要: A旅游观光 题目描述 有n个地方,编号为1->n,任意两个地方有公交车,从i到j的票价为(i+j)mod(n+1),而且这个票可以用无限次,你要把这些地方全部走一遍,问最小花费为多少。可以在任意地方开始和结束。 输入描述: 第一行一个数n 输出描述: 输出一行一个数表示答案 示例1 输入 10 输出 阅读全文
posted @ 2018-01-12 22:57 starry_sky 阅读(757) 评论(0) 推荐(0) 编辑
摘要: decode是解码,encode时编码 在Python2中默认时ASCLL,在Python3中默认时Unicode gbk转向utf-8:先将gbk解码成Unicode,在编码成utf-8。 utf-8转向gbk:先将utf-8解码成Unicode,在编码成gbk。 Python2代码: Pytho 阅读全文
posted @ 2018-01-12 22:10 starry_sky 阅读(409) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 46 下一页