上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 21 下一页
摘要: 使用python3 学习sklearn中支持向量机api的使用 可以来到我的git下载源代码:https://github.com/linyi0604/MachineLearning 阅读全文
posted @ 2018-04-29 10:11 稀里糊涂林老冷 阅读(1727) 评论(0) 推荐(0) 编辑
摘要: 使用python3 学习了线性回归的api 分别使用逻辑斯蒂回归 和 随机参数估计回归 对良恶性肿瘤进行预测 我把数据集下载到了本地,可以来我的git下载源代码和数据集:https://github.com/linyi0604/MachineLearning 阅读全文
posted @ 2018-04-29 10:06 稀里糊涂林老冷 阅读(2825) 评论(0) 推荐(0) 编辑
摘要: 问题描述 某国的军队由N个部门组成,为了提高安全性,部门之间建立了M条通路,每条通路只能单向传递信息,即一条从部门a到部门b的通路只能由a向b传递信息。信息可以通过中转的方式进行传递,即如果a能将信息传递到b,b又能将信息传递到c,则a能将信息传递到c。一条信息可能通过多次中转最终到达目的地。 由于 阅读全文
posted @ 2018-03-14 17:13 稀里糊涂林老冷 阅读(806) 评论(1) 推荐(1) 编辑
摘要: '''You need to find the largest value in each row of a binary tree.Example:Input: 1 / \ 3 2 / \ \ 5 3 9Output: [1, 3, 9]'''# Definition for a binary tree nod... 阅读全文
posted @ 2017-11-27 19:00 稀里糊涂林老冷 阅读(235) 评论(0) 推荐(1) 编辑
摘要: Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.Find all the elements that appear twice in this array.Could you do it without extra spac... 阅读全文
posted @ 2017-11-27 18:13 稀里糊涂林老冷 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 通配符是 shell 命令中的重要功能,? 表示匹配任意 1 个字符,*表示匹配 0 个或多个字符。请使用你熟悉的编程语言实现一个字符串匹配函数,支持 ? 和 * 通配符。如 “a?cd*d” 匹配 “abcdaccd” 1 #coding:utf8 2 ''' 3 通配符是 shell 命令中的重要功能, 4 ? 表示匹配任意 1 个字符, 5 *表示匹配 0 个或多个字符。 6 ... 阅读全文
posted @ 2017-11-06 21:49 稀里糊涂林老冷 阅读(22539) 评论(0) 推荐(0) 编辑
摘要: 给定一个字符串 s 和正整数 n,请使用你熟悉的编程语言输出 s 中包含不超过 n 种字符的最长子串,如 s="uabbcadbaef",n=4 时应该输出 "abbcadba"。 1 # 判断一个字符串里面有几个不同字目 2 def count_diff(s): 3 arr = [] 4 for i in s: 5 if i not in arr: ... 阅读全文
posted @ 2017-11-06 21:10 稀里糊涂林老冷 阅读(3724) 评论(0) 推荐(0) 编辑
摘要: 今天尝试安装了centos系统 玩一玩 刚刚装好的操作系统 ping www.baidu.com的时候 报出 name or service not known 查了好多资料,都没有很好的解决 最后综合好几个资料 解决办法如下: 1 首先 添加dns服务器 vi /etc/resolv.conf 在 阅读全文
posted @ 2017-11-05 14:41 稀里糊涂林老冷 阅读(25942) 评论(3) 推荐(8) 编辑
摘要: 使用python2 总是遇到 UnicodeDecodeErrorUnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 37: ordinal not in range(128) 尝试 decode encode 也 阅读全文
posted @ 2017-11-04 17:01 稀里糊涂林老冷 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 1 shell脚本的规范: 1 文件后缀是 .sh 2 首行是命令解释器: #!/bin/bash 3 首行下面注释写脚本基本信息: 脚本名称、功能、编写时间、撰写人、联系方式等 2 shell执行方式: 1 使用命令解释器加载脚本文件: bash 文件 2 绝对路径或相对路径 ./demo.sh 阅读全文
posted @ 2017-11-04 10:23 稀里糊涂林老冷 阅读(336) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 21 下一页