<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[static_check的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/static_check</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; static_check]]></copyright><item><title><![CDATA[LeetCode刷题笔记  32. Longest Valid Parentheses]]></title><link>https://blog.csdn.net/static_check/article/details/88670295</link><guid>https://blog.csdn.net/static_check/article/details/88670295</guid><author>static_check</author><pubDate>Tue, 19 Mar 2019 19:21:55 +0800</pubDate><description><![CDATA[Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.

Example 1:


Input: "(()"
Output: 2
Explanation: The longest valid...]]></description><category></category></item><item><title><![CDATA[LeetCode刷题笔记  25. Reverse Nodes in k-Group]]></title><link>https://blog.csdn.net/static_check/article/details/88651393</link><guid>https://blog.csdn.net/static_check/article/details/88651393</guid><author>static_check</author><pubDate>Mon, 18 Mar 2019 22:19:29 +0800</pubDate><description><![CDATA[25.Reverse Nodes in k-Group

Given a linked list, reverse the nodes of a linked listkat a time and return its modified list.

kis a positive integer and is less than or equal to the length of the ...]]></description><category></category></item><item><title><![CDATA[高级编程技术 sklearn课后习题]]></title><link>https://blog.csdn.net/static_check/article/details/80719453</link><guid>https://blog.csdn.net/static_check/article/details/80719453</guid><author>static_check</author><pubDate>Sun, 17 Jun 2018 17:10:44 +0800</pubDate><description><![CDATA[from sklearn import datasets
from sklearn import cross_validation
from sklearn.naive_bayes import GaussianNB
from sklearn.svm import SVC
from sklearn.ensemble import RandomForestClassifier
from sklear...]]></description><category></category></item><item><title><![CDATA[高级编程技术 jupyter课后习题]]></title><link>https://blog.csdn.net/static_check/article/details/80645906</link><guid>https://blog.csdn.net/static_check/article/details/80645906</guid><author>static_check</author><pubDate>Sun, 10 Jun 2018 22:59:14 +0800</pubDate><description><![CDATA[%matplotlib inline

import random

import numpy as np
import scipy as sp
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns

import statsmodels.api as sm
import statsmodels.form...]]></description><category></category></item><item><title><![CDATA[高级编程技术 scipy课后习题]]></title><link>https://blog.csdn.net/static_check/article/details/80557687</link><guid>https://blog.csdn.net/static_check/article/details/80557687</guid><author>static_check</author><pubDate>Sun, 03 Jun 2018 17:17:52 +0800</pubDate><description><![CDATA[步骤如下：（1）m = int(input(&quot; Please input m: &quot;))         n = int(input(&quot; Please input n: &quot;))         if m &amp;lt; n:	       m, n = n, m    因为题目没有要求m和n的具体值，只要求m的值大于n的值，所以通过用户交互来确定m和n的值。（2）A = np.matrix(np.rand...]]></description><category></category></item><item><title><![CDATA[高级编程技术 Matplotlib课后习题]]></title><link>https://blog.csdn.net/static_check/article/details/80428148</link><guid>https://blog.csdn.net/static_check/article/details/80428148</guid><author>static_check</author><pubDate>Sun, 27 May 2018 17:50:03 +0800</pubDate><description><![CDATA[步骤如下：（1）f, ax = plt.subplots(1, 1, figsize=(5,4))  ------先用subplot画图；（2）x = np.linspace(0, 2, 200)  ------生成0到2的200个均匀分布数；（3）y = (np.sin(x - 2) ** 2) * (np.exp(-(x ** 2)))  ------生成函数 （4）ax.set_xlim((...]]></description><category></category></item><item><title><![CDATA[高级编程技术 numpy课后习题]]></title><link>https://blog.csdn.net/static_check/article/details/80388717</link><guid>https://blog.csdn.net/static_check/article/details/80388717</guid><author>static_check</author><pubDate>Mon, 21 May 2018 12:12:03 +0800</pubDate><description><![CDATA[简单起见，先将n和m的大小分别设为2和5以利于打印，将n和m修改为200和500即满足题目要求。使用到的库函数有：numpy.matrix：生成矩阵Anumpy.random.normal：生成随机高斯数组，转化为矩阵Ascipy.linalg.toeplitz：生成托普利兹矩阵Bnumpy.random.randn：用随机高斯数填充矩阵B（所以题目没有指明用什么数填充托普利兹矩阵，所以选择了ra...]]></description><category></category></item><item><title><![CDATA[高级编程技术 课后作业十四（第9周第2次）]]></title><link>https://blog.csdn.net/static_check/article/details/80118271</link><guid>https://blog.csdn.net/static_check/article/details/80118271</guid><author>static_check</author><pubDate>Sun, 06 May 2018 12:56:30 +0800</pubDate><description><![CDATA[题目来源：https://leetcode.com/problems/minimum-path-sum/description/题目大意：    给定一个用非负数填充的m * n维方格，每个数字表示从当前方格移动到下一方格的距离，找到一条从左上角到右下角的最短路径，使其路径和最短。每次移动只能向右或向下。解题思路：    因为只能向右或向下移动，所以题目简单很多，步骤如下:（1）对第一行方格，每个...]]></description><category></category></item><item><title><![CDATA[高级编程技术 课后作业十四（第9周第1次）]]></title><link>https://blog.csdn.net/static_check/article/details/80117698</link><guid>https://blog.csdn.net/static_check/article/details/80117698</guid><author>static_check</author><pubDate>Sat, 28 Apr 2018 10:57:26 +0800</pubDate><description><![CDATA[题目来源：https://leetcode.com/problems/subsets/description/题目大意：    给定一个列表，列表里的数字都是不同的，求列表所有可能的子集（幂集）。解题思路：    外层遍历nums，以num记值，内层遍历result，以item记值，每次遍历，result都会增加新元素：item+num。解题代码：class Solution(object):
	...]]></description><category></category></item><item><title><![CDATA[高级编程技术 课后作业十三（第8周第2次）]]></title><link>https://blog.csdn.net/static_check/article/details/80098620</link><guid>https://blog.csdn.net/static_check/article/details/80098620</guid><author>static_check</author><pubDate>Thu, 26 Apr 2018 20:14:27 +0800</pubDate><description><![CDATA[#18 【4Sum】 tag:array题目大意：给定一个数组和一个目标数，找出数组的四个数使其和与目标数最接近，返回所有可能的四个数。解题思路：排序后暴力循环，步骤如下。（1）数组排序。（2）设i，j，k，l分别对应数组四个数的下标，固定i=0，设result空列表代表结果。（3）固定j=i+1。（4）设sum4 = nums[i]+nums[j]+nums[k]+nums[l]。（5）如果su...]]></description><category></category></item><item><title><![CDATA[高级编程技术 课后作业十二（第8周第1次）]]></title><link>https://blog.csdn.net/static_check/article/details/80098167</link><guid>https://blog.csdn.net/static_check/article/details/80098167</guid><author>static_check</author><pubDate>Thu, 26 Apr 2018 19:37:42 +0800</pubDate><description><![CDATA[#16 【3Sum Closest】tag:array题目大意：给定一个数组和一个目标数，找出数组的三个数使其和与目标数最接近，返回三个数的和。解题思路：排序后暴力循环，步骤如下。（1）数组排序。（2）设i，j，k分别对应数组三个数的下标，固定i=0。（3）设sum3 = nums[i]+nums[j]+nums[k]，再设result表示当前与target最接近的和。（4）如果sum3等于tar...]]></description><category></category></item><item><title><![CDATA[高级编程技术 课后作业十一（第6周）]]></title><link>https://blog.csdn.net/static_check/article/details/79860559</link><guid>https://blog.csdn.net/static_check/article/details/79860559</guid><author>static_check</author><pubDate>Tue, 10 Apr 2018 11:03:11 +0800</pubDate><description><![CDATA[11-1 城市和国家 ：编写一个函数，它接受两个形参：一个城市名和一个国家名。这个函数返回一个格式为City, Country 的字符串，如Santiago, Chile 。将这个函数存储在一个名为city_functions.py的模块中。创建一个名为test_cities.py的程序，对刚编写的函数进行测试（别忘了，你需要导入模块unittest 以及要测试的函数）。编写一个名为test_ci...]]></description><category></category></item><item><title><![CDATA[高级编程技术 课后作业十（第5周）]]></title><link>https://blog.csdn.net/static_check/article/details/79822018</link><guid>https://blog.csdn.net/static_check/article/details/79822018</guid><author>static_check</author><pubDate>Sat, 07 Apr 2018 10:13:13 +0800</pubDate><description><![CDATA[10-1 Python学习笔记 ：在文本编辑器中新建一个文件，写几句话来总结一下你至此学到的Python知识，其中每一行都以“In Python you can”打头。将这个文件命名为learning_python.txt，并将其存储到为完成本章练习而编写的程序所在的目录中。编写一个程序，它读取这个文件，并将你所写的内容打印三次：第一次打印时读取整个文件；第二次打印时遍历文件对象；第三次打印时将各...]]></description><category></category></item><item><title><![CDATA[高级编程技术 课后作业九（第5周）]]></title><link>https://blog.csdn.net/static_check/article/details/79742257</link><guid>https://blog.csdn.net/static_check/article/details/79742257</guid><author>static_check</author><pubDate>Wed, 04 Apr 2018 19:26:15 +0800</pubDate><description><![CDATA[9-2 三家餐馆 ：创建一个名为Restaurant 的类，其方法__init__() 设置两个属性：restaurant_name 和cuisine_type 。创建一个名为describe_restaurant() 的方法和一个名为open_restaurant() 的方法，其中前者打印前述两项信息，而后者打印一条消息，指出餐馆正在营业。根据编写的类创建三个实例，并对每个实例调用方法descr...]]></description><category></category></item><item><title><![CDATA[高级编程技术 课后作业八（第4周）]]></title><link>https://blog.csdn.net/static_check/article/details/79734737</link><guid>https://blog.csdn.net/static_check/article/details/79734737</guid><author>static_check</author><pubDate>Thu, 29 Mar 2018 00:03:59 +0800</pubDate><description><![CDATA[8-1 消息 ：编写一个名为display_message() 的函数，它打印一个句子，指出你在本章学的是什么。调用这个函数，确认显示的消息正确无误。def display_message():
    print(&quot;What I learnt in this chapter is 'Function'.&quot;)
	
display_message()What I learnt in this cha...]]></description><category></category></item><item><title><![CDATA[高级编程技术 课后作业七（第4周）]]></title><link>https://blog.csdn.net/static_check/article/details/79693439</link><guid>https://blog.csdn.net/static_check/article/details/79693439</guid><author>static_check</author><pubDate>Mon, 26 Mar 2018 11:29:00 +0800</pubDate><description><![CDATA[7-1 汽车租赁 ：编写一个程序，询问用户要租赁什么样的汽车，并打印一条消息，如“LetmeseeifIcan find you a Subaru”。car = input(&quot;What kind of car do you want to lease? &quot;)

print(&quot;Let me see if I can find you a &quot; + car + &quot;.&quot;)
What kind of car...]]></description><category></category></item><item><title><![CDATA[高级编程技术 课后作业六]]></title><link>https://blog.csdn.net/static_check/article/details/79552193</link><guid>https://blog.csdn.net/static_check/article/details/79552193</guid><author>static_check</author><pubDate>Sat, 24 Mar 2018 11:32:17 +0800</pubDate><description><![CDATA[6-1 人：使用一个字典来存储一个熟人的信息。acquaintance = {
    'first_name': 'Black',
    'last_name': 'Smith',
    'age': '23',
    'city': 'America',
    }
	
print(acquaintance)
{'first_name': 'Black', 'last_name': 'S...]]></description><category></category></item><item><title><![CDATA[高级编程技术 课后作业五]]></title><link>https://blog.csdn.net/static_check/article/details/79548555</link><guid>https://blog.csdn.net/static_check/article/details/79548555</guid><author>static_check</author><pubDate>Sat, 24 Mar 2018 11:31:42 +0800</pubDate><description><![CDATA[5-2 更多的条件测试string1 = &quot;Apple&quot;
string2 = &quot;apple&quot;
number1 = 0.1 + 0.2
number2 = 0.3
list1 = [&quot;apple&quot;,&quot;boy&quot;,&quot;cat&quot;]

print(&quot;Is string1 == string2? I predict False.&quot;)
print(string1 == string2)

print(&q]]></description><category></category></item><item><title><![CDATA[高级编程技术 课后作业四]]></title><link>https://blog.csdn.net/static_check/article/details/79535066</link><guid>https://blog.csdn.net/static_check/article/details/79535066</guid><author>static_check</author><pubDate>Fri, 16 Mar 2018 21:05:24 +0800</pubDate><description><![CDATA[4-1 比萨：想出至少三种你喜欢的比萨，将其名称存储在一个列表中，再使用for循环将每种比萨的名称都打印出来。pizzas = [&quot;assorted pizza&quot;,&quot;vegetable pizza&quot;,&quot;Margherita pizza&quot;,&quot;pepperoni pizza&quot;]

for pizza in pizzas:
    print(pizza)assorted pizza
vegetable...]]></description><category></category></item><item><title><![CDATA[高级编程技术 课后作业三]]></title><link>https://blog.csdn.net/static_check/article/details/79534810</link><guid>https://blog.csdn.net/static_check/article/details/79534810</guid><author>static_check</author><pubDate>Mon, 12 Mar 2018 23:29:16 +0800</pubDate><description><![CDATA[3-1 姓名：将一些朋友的姓名存储在一个列表中，并将其命名为names。依次访问该列表中的每个元素，从而将每个朋友的姓名都打印出来。names = ['Micheal','James','Black','Smith']
for name in names:
    print(name)
Micheal
James
Black
Smith3-2 问候语：继续使用练习3-1中的列表，但不打印每个朋友...]]></description><category></category></item></channel></rss>