![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
高级编程技术 作业
文章平均质量分 71
yyyyzxc1234
这个作者很懒,什么都没留下…
展开
-
第2周作业 #高级编程技术
3-1 姓名:将一些朋友的姓名存储在一个列表中,并将其命名为names。依次访问该列表中的每个元素,从而将每个朋友的姓名显示出来。names = ['Tom', 'Peter', 'Alice']for name in names: print(name)3-2 问候语:继续使用练习3-1中的列表,但不打印每个朋友的姓名,而为每人打印一条消息。每条消息都包含相同的问候语,但抬头为相应朋友...原创 2018-03-16 07:48:09 · 250 阅读 · 0 评论 -
第13周作业 #高级编程技术
matplotlibExercise 10.1: Least squares Generate matrix A ∈ Rm×n with m > n. Also generate some vector b ∈ Rm. Now find x = argmin x ||Ax−b||2. Print the norm of the residual.import nump...原创 2018-05-30 22:47:05 · 263 阅读 · 0 评论 -
第14周作业 #高级编程技术
题目来源https://nbviewer.jupyter.org/github/schmit/cme193-ipython-notebooks-lecture/blob/master/Exercises.ipynb Anscombe’s quartetAnscombe’s quartet comprises of four datasets, and is rather famous...原创 2018-06-13 10:51:51 · 467 阅读 · 0 评论 -
第12周作业 #高级编程技术
matplotlibExercise 11.1: Plotting a function Plot the function f(x) = sin2(x−2)e−x2 over the interval [0,2]. Add proper axis labels, a title, etc.import matplotlib.pyplot as pltimport ...原创 2018-05-29 23:35:37 · 184 阅读 · 0 评论 -
第8周作业 #高级编程技术
第8周作业 #高级编程技术原创 2018-04-30 00:22:50 · 123 阅读 · 0 评论 -
第11周作业 #高级编程技术
numpy Generate matrices A, with random Gaussian entries, B, a Toeplitz matrix, where A ∈Rn×m and B ∈Rm×m, for n = 200, m = 500.import numpy as npfrom scipy.linalg import toeplitzA = np.ra...原创 2018-05-17 20:10:31 · 214 阅读 · 0 评论 -
第8周作业 #高级编程技术
[leetcode]198.House Robber原创 2018-04-25 19:53:01 · 119 阅读 · 0 评论 -
第6周作业 #高级编程技术
第6周作业原创 2018-04-16 11:54:44 · 213 阅读 · 0 评论 -
第5周作业 #高级编程技术
- 第9章 - 9-1 餐馆 - 9-2 三家餐馆 - 9-3 用户 - 9-4 就餐人数 - 9-5 尝试登录次数 - 9-6 冰淇淋小店 - 9-7 管理员 - 9-8 权限 - 9-9 电瓶升级 - 9...原创 2018-04-07 23:49:14 · 933 阅读 · 0 评论 -
第4周作业 #高级编程技术
第七章 7-1 汽车租赁7-2 餐馆订位7-3 10的整数倍7-4 比萨配料7-5 电影票7-6 三个出口7-7 无限循环7-8 熟食店7-9 五香烟熏牛肉卖完了7-10 梦想的度假胜地第八章 8-1 消息8-2 喜欢的图书8-3 T恤8-4 大号T恤8-5 城市8-6 城市名8-7 专辑8-8 用户的专辑8-9 魔术师8-10 了不起的魔术师8-...原创 2018-03-26 19:41:51 · 749 阅读 · 1 评论 -
第3周作业 #高级编程技术
第五章 5-1 条件测试5-2 更多的条件测试5-3 外星人颜色#15-4 外星人颜色#25-5 外星人颜色#35-6 人生的不同阶段5-7 喜欢的水果5-8 以特殊方式跟管理员打招呼5-9 处理没有用户的情形5-10 检查用户名5-11 序数本章注意点第六章 6-1 人6-2 喜欢的数字6-3 词汇表6-4 词汇表26-5 河流6-6 调查6-7...原创 2018-03-20 13:18:05 · 705 阅读 · 0 评论 -
第1周作业 #高级编程技术
1.浏览Python主页(https://www.python.org/),在博客上写下你有哪些发现和收获Python主页上有个interactive shell的按钮,可以进入在线Python编程的界面。Python主页上放了5个代码,显示了Python 3的特性。让我们看看这5个代码:#代码一# Python 3: Fibonacci series up to n>>> d...原创 2018-03-11 19:36:49 · 301 阅读 · 0 评论 -
第15周作业 #高级编程技术
sklearn题目解题过程1. Create a classification dataset (n samples 1000, n features 10)2. Split the dataset using 10-fold cross validation3. Train the algorithmsGaussianNB SV...原创 2018-06-20 14:40:57 · 225 阅读 · 0 评论