- 博客(20)
- 收藏
- 关注
原创 作业(二十)——sklearn
建立一个分类数据集我使用了sklearn库中自带的评估函数朴素贝叶斯模型训练评估结果SVC模型训练评估结果随机深林分类模型训练评估结果平均来看,对于这组数据是随机深林分类模型最好...
2018-06-14 15:48:38 268 1
原创 作业(十五)——409. Longest Palindrome
题目Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters.This is case sensitive, for example "Aa" is not consi...
2018-05-02 22:38:35 88
原创 作业(十四)——78. Subsets
题目Given a set of distinct integers, nums, return all possible subsets (the power set).Note: The solution set must not contain duplicate subsets.Example:Input: nums = [1,2,3] Output: [ [3], [1], ...
2018-04-28 12:55:42 93
原创 作业(十三)——541. Reverse String II
题目Given a string and an integer k, you need to reverse the first k characters for every 2k characters counting from the start of the string. If there are less than k characters left, reverse all of th...
2018-04-25 22:07:35 117
原创 作业(十二)——414. Third Maximum Number
题目Given a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The time complexity must be in O(n).Example 1:Input: [3, 2, 1] O...
2018-04-23 18:29:27 129
原创 作业(九)——类的使用
创建和使用类(9.1, 9.2) 类参数默认值设定(9.4) 类的继承(9.6) 类的导入(9.10) 库函数使用(9.14)
2018-04-02 17:30:32 80
原创 作业(八)——函数的使用
认识函数(8.2) 实参的传递(8.5) 返回值的使用(8.8) 列表的传递(8.11) 任意数量实参使用(8.14) 函数储存在模块中(8.16)
2018-03-28 22:10:25 91
原创 作业(七)——用户输入和while循环
input()输入函数(7.3) while循环的使用(7.5, 7.6) while循环处理列表和字典(7.8, 7.9)
2018-03-26 16:46:01 323
原创 作业(四)——列表的应用
遍历列表(4.2) 建立数值列表(4.5)(4.7)(4.8, 4.9) 列表的切片使用(4.10)(4.11) 元组使用(4.13)
2018-03-14 22:03:39 142
原创 作业(三)——认识列表
学习列表后,做一些简单的列表操作。 列表的建立与访问(3.2) 列表元素的修改(3.4, 3.5) 列表的增添和删除(3.6, 3.7) 列表排序和长度(3.8, 3.9)...
2018-03-12 16:53:25 154
原创 作业(二)——Python的简单数据类型
今天教了一些简单的数据类型,用一些练习巩固自己的知识。 字符串的储存和打印。 (2.2) 字符串的大小写调整(2.4) 字符串的空白删除(2.7) 加减乘除的应用(2.8) 添加注释(2.10)...
2018-03-07 21:46:21 153
原创 作业(一)——初识Python
在高级编程技术课上,老师介绍了这门课要讲解的语言Python,并且让我们自己去Python的官网下载和了解Python。 我发现Python的官网不只是下载Python的地方。其中除了各个版本的Python安装程序外,还有Python的详细介绍、各个版本所更新的特点、关于Python的书和文章以及其庞大的库。 官网上还提供了求职信息,为Python使用者提供求职方式。 老...
2018-03-05 18:50:38 484
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人