![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
高级程序设计
「已注销」
这个作者很懒,什么都没留下…
展开
-
第二章课后作业
Chapter Two2-1 简单消息message = "砍口垒,哈吉马路油"print(message)2-2 多条简单消息message = "砍口垒,哈吉马路油"print(message)message = "Poi!"print(message)2-3 个性化消息name = "Agaki"print("Hello " + name + ".原创 2018-03-07 22:16:59 · 376 阅读 · 0 评论 -
Container With Most Water
[Leet Code - Array] 11. Conatainer With Most Water题目来源Container With Most Water题意分析给定 n 个非负整数 a1,a2,…,an,每个数代表坐标中的一个点 (i, ai) 。画 n 条垂直线,使得垂直线 i 的两个端点分别为 (i, ai) 和 (i, 0)。找出其中的两条线,使得它们与 x 轴...原创 2018-05-01 20:57:00 · 1933 阅读 · 0 评论 -
Longest Palindromic Substring
[Leet Code - String] 5. Longest Palindromic Substring题目来源Longest Palindromic Substring题意分析给定一个字符串 s,找到 s 中最长的回文子串。你可以假设 s 的最大长度为1000。解题思路显而易见该题的解题方法在于遍历,但是问题的关键在于如何遍历。考虑如下事实:回文串都有一个“...原创 2018-05-01 21:56:19 · 151 阅读 · 0 评论 -
Minimum Depth of Binary Tree
[Leet Code - Depth-first Search] 111. Minimum Depth of Binary Tree题目来源Minimum Depth of Binary Tree题意分析给定一个二叉树,找出其最小深度。 最小深度是从根节点到最近叶子节点的最短路径上的节点数量。 说明: 叶子节点是指没有子节点的节点。解题思路没啥好说的,深度优...原创 2018-05-01 22:13:30 · 140 阅读 · 0 评论 -
Binary Tree Inorder Traversal
[LeetCode - Binary Tree] 94. Binary Tree Inorder Traversal题目来源Binary Tree Inorder Traversal题意分析给定一个二叉树,返回它的中序遍历。示例:输入: [1,null,2,3] 1 \ 2 / 3 输出: [1,3,2]解题思路使用...原创 2018-05-06 20:38:30 · 112 阅读 · 0 评论 -
Numpy Exercise
NumpyGenerate matrices A, with random Gaussian entries, B, a Toeplitz matrix, where A ∈Rn×m and B ∈Rm×m, for n = 200, m = 500.import numpyimport time# Generate random seedseed = numpy.int64(ti...原创 2018-05-20 21:33:43 · 205 阅读 · 0 评论 -
Matplotlib Exercise
Matplotlib ExerciseExercise 1: plotting a functionPlot the function f(x)=sin2(x−2)e−x2f(x)=sin2(x−2)e−x2f(x)=\sin^2(x-2)e^{-x^2} over the interval [0,2]. Add proper axis labels, a title, et...原创 2018-05-27 17:53:55 · 164 阅读 · 0 评论 -
Scipy Exercise
Scipy ExerciseExercise 1: Least squaresGenerate matrix A∈Rm×nA∈Rm×nA ∈ R_{m×n} with m>nm>nm > n. Also generate some vector b∈Rmb∈Rmb ∈ R_m. Now find x=argminx||Ax−b||2x=argminx||Ax−b||2x =...原创 2018-06-04 20:32:06 · 191 阅读 · 0 评论 -
Scikit-Learn Exercise
Scikit-Learn原创 2018-06-17 13:12:07 · 240 阅读 · 0 评论 -
第十章课后作业
Chapter 1010-1 Python学习笔记with open("learning_python.txt") as file_object: print(file_object.read())print()with open("learning_python.txt") as file_object: for line in file_object: ...原创 2018-04-06 19:53:27 · 763 阅读 · 0 评论 -
第九章课后作业
Chapter 99-1 餐馆class Restaurant: def __init__(self, restaurant_name, cuisine_type): self.restaurant_name = restaurant_name self.cuisine_type = cuisine_type def describ...原创 2018-04-05 22:31:45 · 533 阅读 · 0 评论 -
第十一章课后作业
Chapter 1111-1 城市和国家# city_functions.pydef city_country(city, country): info = city.title()+", "+country.title() return info# test_city.pyimport unittestfrom city_functions import c...原创 2018-04-15 11:59:54 · 291 阅读 · 0 评论 -
第三章课后作业
Chapter Three3-1 姓名names = ["Wu Yanbing", "Wu Dechong", "Xu Jing"]for name in names: print(name)3-2 问候语names = ["Wu Yanbing", "Wu Dechong", "Xu Jing"]for name in names: pri原创 2018-03-15 17:16:12 · 509 阅读 · 0 评论 -
第四章课后作业
Chapter Four4-1 比萨pizzas = ["Black Pepper Beef", "New Orleans", "Stuffed Crust Jumbo Shripm Crown"]for pizza in pizzas: # print(pizza) print("I like " + pizza + " pizza.")print("I reall.原创 2018-03-15 23:01:36 · 319 阅读 · 0 评论 -
关于Python官网
简洁的界面设计 最开始老师要求我们访问Python,并谈谈自己的发现与收获的时候,我是有些不以为然的。我处于下载各种编程的IDE和运行环境的目的,也浏览过一些诸如Java,Dev-C++等编程有关的网站,这些网站都给我一种粗制滥造般的感觉,虽然也不至于太过难看,但怎么说也与网站内容的广泛应用不符,显得太过寒碜了些,不佳的第一印象让我对于浏览这些网站也性质寥寥,说的难听,Pyhton这样一门...原创 2018-03-10 21:11:20 · 691 阅读 · 0 评论 -
一个小目标(雾) -- 基于深度学习的普适智能推荐系统框架
一点想法 对Python有一定了解的人都知道Python一个很热门的应用领域就是深度学习。Python在深度学习方面有TenseFlow等一系列成熟的深度学习框架,因此使用Python来开发深度学习应用是很有优势的。而对于深度学习的诸多应用领域中,我比较感兴趣的就数推荐系统方面的应用。这就是为什么我想要试着做一个基于深度学习的普适智能推荐系统框架的原因。理论基础 推荐系统...原创 2018-03-10 23:05:30 · 463 阅读 · 0 评论 -
第六章课后作业
Chapter Six6-1 人james = { 'first_name': "James", 'last_name' : "Brown", 'age' : 23, 'live_city' : "Hong Kong"}print("First name:\t" + james['first_name'])print("Last name:\t...原创 2018-03-22 17:34:16 · 437 阅读 · 0 评论 -
第八章课后作业
Chapter Eight8-1 消息def display_message(): print("We learn functions in this chapter.")display_message()8-2 喜欢的图书def favorite_book(title): print('One of my favorite books is ' + title...原创 2018-03-29 19:13:25 · 235 阅读 · 0 评论 -
第五章课后作业
Chapter Five5-1 条件测试course = "Operation System"print("Is course == 'Operation System'? I predict True")print(course == 'Operation System')print("Is course == 'Computer Networking'? I predict...原创 2018-03-20 20:21:35 · 492 阅读 · 0 评论 -
第七章课后作业
Chapter Seven7-1 汽车租赁car = input("Please tell me what kind of car would you like to rent.\n")print("Let me see if I can find you a " + car.title() + ".")7-2 餐馆订位guest_num = int(input("How man...原创 2018-03-27 10:07:53 · 274 阅读 · 0 评论 -
Jupyter Notebook Exercise
Jupyter Notebook Exercise%matplotlib inlineimport randomimport numpy as npimport scipy as spimport pandas as pdimport matplotlib.pyplot as pltimport seaborn as snsimport statsmodels.api ...原创 2018-06-10 22:12:25 · 350 阅读 · 0 评论