自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 Web练习3 CSS简单选择器使用实例

2019-03-28 21:41:27 347

原创 Web练习2 表单网页

<!DOCTYPE html><html lang="zh-cn"> <head> <meta charset="utf-8"> <title>Blog Edit</title> <style type="text/css"> *{font-size:20px;font-family:...

2019-03-26 21:24:25 487

原创 Web练习1 第一个html网页

【实验内容】1、根据下图提示(标出了元素)尽可能做出相似的网页(文字包含在html1.txt中)。其中包含的图像(sysu.png,fig1.png)和链接的网页(kj.html~sh.html)都在当前路径中;有一些元素下面标出了属性; 最后一行使用了div元素(id="footer")。2、在步骤1的网页的head元素中加入以下style元素:<style>...

2019-03-26 21:21:12 1125

原创 第十五周作业 sklearn

题目:

2018-06-19 11:44:07 213

原创 第十四周作业 Jupyter

import seabornimport pandasimport matplotlib.pyplot as pltanascombe = pandas.read_csv('anscombe.csv')seaborn.set(style='whitegrid') #数据可视化graph = seaborn.FacetGrid(anascombe,col='dataset',hue...

2018-06-13 15:25:04 260

原创 第十三周作业 Scipy习题

import numpy as npimport numpy.matlibimport scipym=10n=5A = np.matlib.randn(m, n) #生成Ab = np.matlib.rand(m, 1) #随机生成向量bx = np.linalg.solve(A.T*A, A.T*b)r = np.linalg.norm(A*x-b,ord=1)p...

2018-05-30 20:19:21 252

原创 第十二周作业 Matplotlib习题

首先安装matplotlib库(好像。。本来就有?)用到mathku的sin函数和exp(x)函数(返回e的x次方)import numpy as npimport matplotlib.pyplot as pltimport mathx=np.linspace(0,2,1000) #这个表示在-5到5之间生成1000个x值y=[(math.sin(i-2))**2*math.exp(-...

2018-05-27 14:51:33 810

原创 第十一周作业 Numpy习题

查阅numpy函数使用的博客:Numpy线性代数:https://blog.csdn.net/pianoorrock/article/details/79223080numpy基本方法总结:https://blog.csdn.net/blog_empire/article/details/39298557生成矩阵A和B,A由随机高斯项组成,B为toeplitz矩阵n,m值调整至10,15,便于测试...

2018-05-23 20:04:56 609

原创 第八周作业 LeetCode 选做 两题

35. 搜索插入位置题目描述:给定一个排序数组和一个目标值,在数组中找到目标值,并返回其索引。如果目标值不存在于数组中,返回它将会被按顺序插入的位置。你可以假设数组中无重复元素。class Solution(object): def searchInsert(self, nums, target): first = 0 last...

2018-04-25 22:59:05 222

原创 第六周作业 第11章选做

11.1import unittestdef city_functions(city, country): return city.title() + ', ' + country.title()class Test(unittest.TestCase): def test_city_country(self): c_c = city_functions(...

2018-04-16 00:07:14 113

原创 第五周作业b 第10章选做(1、2、4、8)

10.1with open("learning_python.txt")as fob: print("print_1:") data=fob.read() print(data) print("print_2:") fob.seek(0,0) for line in fob: print(line.strip()) print("print_3:") fob.seek(...

2018-04-06 15:01:31 136

原创 第五周作业a 第9章选做(1、2、6、10)

9-1#9.1class Restaurant(): def __init__(self,name,cuisine_type): self.name=name self.cuisine_type=cuisine_type def describe_restaurant(self): print("The restaurant's name is "+self.name+ ".")...

2018-04-06 00:20:42 134

原创 第四周作业b 第8章选做(1、3、7、8)

8-1def display_message(message): print(message)mess=input("Input a message and it will be displayed:")display_message(mess)8-3def make_shirt(size,message): print("The shirt will be made with the ...

2018-04-01 15:52:01 125

原创 第四周作业a 第7章选做(2、5、6、8)

7-2number=int(input("How many people will have a meal?:"))if number&gt;8: print("There is no empty table for so many people.")else: print("There is an empty table.")7-5/6flag=Truewhile(flag): a...

2018-04-01 14:37:03 120

原创 第三周作业b 第6章选做(2、5、10)

6-2 喜欢的数字love_number={ 'A': 2, 'B': 3, 'C': 4, 'D': 6, 'E': 8, }for key,value in love_number.items(): print(key + " love " + str(value))6-5 河流dict={ 'river_1':'country_A', 'river_2':'countr...

2018-03-25 17:54:15 2036

原创 第三周作业a 第5章选做(3、4、5、6、8)

5-3/4/5 外星人的颜色#5.3alien_color='green'if alien_color=='green': print("You got 5 points")if alien_color=='red': print("You got 5 points")print("\n")#5.4if alien_color=='green': print("You got ...

2018-03-25 17:32:17 119

原创 第二周作业b 第4章选做(3、5、7、9、10)

4-3 数到20for n in range(1,21): print(n)4-5 计算1-1000000的总和number=list(range(1,1000001))print(min(number))print(max(number))print(sum(number))4-7 3的倍数numbers=list(range(3,31,3))for i in numbers: p...

2018-03-18 13:46:52 131

原创 第二周作业a 第3章选做(2、4、5、6、7、8)

3-2 问候语friends=['Ben','Tom','Alice']for name in friends: print('Good night! ' + name)3-4/5/6/7创建嘉宾名单、修改、添加嘉宾、缩减名单#3-4invite=["Ben","Tom","Alice"]for name in invite: print('Invite you to dinner ' ...

2018-03-18 00:24:13 168

原创 第一周作业b 第2章选做(2、4、7、8、11)

2-2多条简单消息temp="This is a string."print(temp)temp=123456print(temp)tip:变量不需要声明,直接使用,而且该变量的数据类型可以在程序运行过程中改变。2-4调整名字的大小写name="taylor swift"print(name.title())print(name.upper())print(name.lower())...

2018-03-11 19:31:44 211

原创 第一周作业a

1、浏览Python主页的发现和收获python主页:https://www.python.org/感想收获?:感觉python是一门简洁又强大的编程语言,如果将其学好,一定能够提升自身的能力。2、假设本人已经成为一个python的编程高手(???假的,不存在的),想要实现怎么样的程序,在博客上写下自己的目标。目标:emmmm,之前听说过爬虫,如果学好了,先实现一下网络爬虫,在网上爬电自己想要的信...

2018-03-07 15:44:31 186

空空如也

空空如也

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

TA关注的人

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