自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 收藏
  • 关注

原创 sklearn 练习

sklearnsklearn代码输出代码from sklearn import datasetsfrom sklearn import cross_validationfrom sklearn.naive_bayes import GaussianNB from sklearn import metricsfrom sklearn.svm impor...

2018-06-20 01:50:50 377

原创 Jupyter 练习

jupyterjupyterAnscombe’s quartet平均数方差相关系数回归函数画图Anscombe’s quartet平均数import randomimport numpy as npimport scipy as spimport pandas as pdfrom pandas.core import date...

2018-06-13 02:53:16 269

原创 scipy练习

scipy练习scipy练习10.110.210.310.1 Exercise 10.1: Least squares Generate matrix A ∈ Rm×n with m > n. Also generate some vector b ∈ Rm. Now find x = argminxkAx−bk2. Print...

2018-06-06 01:52:18 210

原创 Matplotlib练习

Matplotlib练习Matplotlib练习Exercise 11.1Exercise 11.2Exercise 11.3Exercise 11.1 Plot the function f(x) = sin2(x−2)e−x2 over the interval [0,2]. Add proper axis labels, a...

2018-05-30 02:30:00 174

原创 numpy练习

Numpy练习Numpy练习9.19.29.39.49.59.69.1 Calculate A + A, AA>,A>A and AB. Write a function that computes A(B−λI) for any λ. import numpy as np from scipy.linalg import t...

2018-05-23 03:18:13 310

原创 leetcode-解题2018-5-8

27.REMOVE ELEMENTclass Solution:    def removeElement(self, nums, val):        e = len(nums)        m =0        i = 0        while(i<e):            if(nums[i]==val):                del nums[i]     ...

2018-05-08 01:18:15 112

原创 leetcode-解题2018-4-29

1. Two Sumcode:class Solution:    def twoSum(self, nums, target):        for a in range(0,len(nums)):            for b in range(a+1,len(nums)):                if (nums[a]+nums[b]==target):            ...

2018-04-29 23:50:33 87

原创 python编程:从入门到实践-第十一章练习

#-*-coding:utf-8 -*-import unittest'''def City_country(city,country): return (city+" "+country).title()class CityTestCase(unittest.TestCase): def test_City_country(self): cc=City_country(...

2018-04-15 15:03:34 141

原创 python编程:从入门到实践-第十章练习

#10-1with open('learning_python.txt') as lp: l1 = lp.read() print(l1) for i in lp: print(i) l2 = lp.readlines() for i in l2: print(i.strip()) for i in l2: ...

2018-04-08 20:50:56 171

原创 python编程:从入门到实践-第九章练习

#-*-coding:utf-8 -*-# 9-1class Restaurant(): def __init__(self,restaurant_name,cuisine_type): self.restaurant_name=restaurant_name self.cuisine_type=cuisine_type def open_restauran...

2018-04-08 20:50:15 212

原创 python编程:从入门到实践-第八章练习

#-*-coding:utf-8 -*-# 8-1def display_message(): print('function!')# 8-2def favorite_book(title): print('One of my favorite book is',title)# 8-3def make_shirt(size,words): print('T-shirt:',wor...

2018-03-31 22:35:19 225

原创 python编程:从入门到实践-第七章练习

#7-1print('what kind of car do you want?')car = input()print('let me see if i can find you a %s'%car)#7-2number = input('how many people ?')if int(number) >8: print('we are out of table!')else: ...

2018-03-27 11:54:32 173

原创 python编程:从入门到实践-第六章练习

#-*-coding:utf-8 -*-#6-1person = {'first_name':'Yang','last_name':'xh','age':19,'city':'Beijing'}for key,value in person.items(): print(value,end=' ')#6-2favorite_number={}favorite_number['xiaojz']...

2018-03-24 14:19:13 213

原创 python编程:从入门到实践-第五章练习

#-*-coding:utf-8 -*-#5-1superhero = 'spider-man'print('is superhero == spider-man?','i predict true')print(superhero =='spider-man')print('is superhero == batman?','i predict false')print(superhero ==...

2018-03-24 14:17:10 145

原创 python编程:从入门到实践-第四章练习

#4-1pizza= ['芝士披萨','水果披萨','火腿披萨']for i in pizza: print('i like',i)print("我非常喜欢披萨,尤其是芝士披萨、水果披萨、火腿披萨",'I really love pizza!')#4-2animal=['cat','tiger','lion']for i in animal: print(i +"is super st...

2018-03-18 12:13:28 176

原创 python编程:从入门到实践-第三章练习

#16337256 肖鉴哲#3-1names=['xiaojz','yangxh','yangxy','caobb']for i in names: print(i)#3-2message='hi ,'for i in names: print(message+i+'!')#3-3method= ['car','train','airplane','foot']for i in met...

2018-03-18 12:12:21 311

原创 python编程:从入门到实践-第二章练习

#-*-coding:utf-8 -*-#2-1identity='moonknight'print(identity)#2-2name='punisher'print(name)name='Thor'print(name)#2-3my_name='spider-man'print('hi',my_name,',you have to save her!')#2-4someone='iron ma...

2018-03-09 01:04:05 138

原创 未来,当我熟悉python后...

    当我熟悉python后,我打算利用python进行人工智能和神经网络的实验,同时我也想学习计算机视觉。众所周知,python是一门具有丰富库的语言,其中包括大量的科学计算、神经网络和计算机视觉库,我想利用python来开发计算机视觉,开发计算机视觉应用,我尤其对无人车和无人飞机方面感兴趣,我希望我在未来能开发出识别精准的计算机视觉软件,同时我也希望我能够在计算机视觉方面有所建树。    同...

2018-03-08 23:01:53 280

原创 python首页浏览

浏览python主页的时候我看到了很多,想到了很多:1. 首先python是一种编程语言,就像c、c++和go语言,但与这些语言不同的是python是一种动态语言,这意味着变量可以直接使用,而不用像c、c++、go一样先声明再使用,这是python的一个优点也是一个缺点,优点是这样非常方便,尤其是对与新手来说,可以减少负担;缺点是造成了巨大的安全隐患,包括在使用的过程种程序员可能在不经意之间就改变...

2018-03-08 22:59:49 224

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除