自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 emu193课程ipython的教程课后作业

Part1: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.formula.api as smf ...

2018-06-13 15:16:17 161

原创 Matplotlib习题

11.1import numpy as np import matplotlib.pyplot as plt import math x = np.linspace(0, 2, 1000) y = [math.sin(i-2)**2 * math.exp(-i**2) for i in x] plt.plot(x, y) plt.xlabel('x') plt.ylabel('y') plt.t...

2018-05-30 14:42:13 402

原创 Numpy习题

元素生成:import numpy as np from scipy.linalg import toeplitz import time mu,sigma = 0, 1.0 n,m = 200, 500 A = np.random.normal(loc = mu, scale = sigma, size = (n,m)) C = [a for a in range(1, m + 1)] B =...

2018-05-21 21:30:38 182

原创 Leetcode 485 283 628

485:class Solution: def findMaxConsecutiveOnes(self, nums): """ :type nums: List[int] :rtype: int """ a = 0 b = 0 for i in nums: ...

2018-04-29 20:52:07 117

原创 《Python编程-从入门到实践》第十一章习题训练

11-1城市和国家:def city_function(city, country): r = city.title() + ', ' + country.title() return r import unittest from city_functions import city_function class NameTestCase(unittest.TestCase):...

2018-04-15 20:00:10 215

原创 《Python编程-从入门到实践》第九章及第十章习题训练

9-1餐馆:class restaurant(): def __init__(self, name, type): self.name = name self.type = type def describe_restaurant(self): print(self.name + ' ' + self.type) def ...

2018-04-07 18:25:14 167

原创 《Python编程-从入门到实践》第七章及第八章习题训练

7-310的整数倍:num = int(input("Input a num:")) if (num % 10) == 0: print("yes") else: print("no")7-4披萨配料:a = True while a != "quit": a = input("wut do you want?") if a != 'quit': p...

2018-03-31 20:42:23 206

原创 《Python编程-从入门到实践》第五章及第六章习题训练

5-1条件测试:pizza = 'cheese' print("Is pizza == 'cheese'? I predict True.") print(pizza == 'cheese') print("Is pizza == 'mushroom'? I predict False.") print(pizza == 'mushroom')5-2更多的条件测试:str1 = 'Happy' s...

2018-03-25 13:27:08 353

原创 《Python编程-从入门到实践》第三章及第四章习题训练

3-1姓名:name = ["James", "Harden", "Steph", "Curry"] print(name[0].title() + " " + name[1].title() + " " + name[2].title() + " " + name[3].title() + " ")3-2问候语:name = ["Jame

2018-03-15 23:00:39 276

原创 《Python编程-从入门到实践》第二章习题训练

2-1简单消息:msg = "Hello world!" print(msg)2-2多条简单消息:msg = "Hello world" print(msg) msg = "This is Python" print(msg)2-3个性化消息:name = "Daniel" print("Hello " + name + ", how are you today?")2-4调整名字的大小写

2018-03-10 16:43:29 126

原创 假如我成为一名Python编程高手

假如我成为了一名Python编程高手,我打算在网页设计,数据分析,机器学习等方向来开展我的研究与设计。

2018-03-10 15:59:48 178

原创 初识Python的发现与收获

Python,是一种面向对象的解释型计算机程序设计语言,由荷兰人Guido van Rossum于1989年发明,第一个公开发行版发行于1991年。Python可以通过其官网www.python.org下载。目前,官网提供2.7.14与3.6.4两个不同版本的Python下载。在未来的一段时间中,Python 3.x将作为程序及开发的主流语言,因此,我也将选用Python 3.x作为我这段时间的学...

2018-03-10 15:56:48 1884

空空如也

空空如也

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

TA关注的人

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