自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(31)
  • 资源 (6)
  • 收藏
  • 关注

原创 python学习笔记 6. 序列类型

6.1 序列序列是一种 Python 的类型,它们的成员有序排列的,并且可以通过下标偏移量访问到它的一个或者几个成员。包括下面这些:字符串(普通字符串和 unicode 字符串),列表,和元组类型。适用于所有序列类型的操作符和内建函数(BIFs):操作符内建函数特性相关模块6.1.1 标准类型操作符标准类型操作符(参见 4.5 节)一般都能适用于所有的序列类型6.1.2 序列类型操作符表 6.1 列出了对所有序列类型都适用的操作符。操作符是按照优先级从高到底的顺序排列的。

2021-01-09 15:28:23 797

原创 Python笔记 5. 数字类型

5.1 数字类型数字类型属于不可变类型,通过复制操作可以创建和更新(实际上是创建新对象),通过del可以删除对象引用,但是无法删除对象,python会自动回收。5.2 整型布尔型布尔对象标准整数类型:等价于C的无符号长整型长整型:仅与计算机支持的虚拟内存的大小有关,目前已统一16384L -0x4E8L017L5.3 双精度浮点数浮点数值通常都有一个小数点和一个可选的后缀 e(大写或小写,表示科学计数法)。在 e和指数之间可以用正(+)或负(-)表示指数的正负(正数

2020-12-12 17:42:30 214 2

原创 python笔记 4.python对象

4.1 python对象Python 使用对象模型来存储数据。构造任何类型的值都是一个对象。4.1.1 对象特性所有的 Python 对像都拥有三个特性:身份,类型和值身份:每一个对象都有一个唯一的身份标识自己,任何对象的身份可以使用内建函数 id()来得到。这个值可以被认为是该对象的内存地址。类型对象的类型决定了该对象可以保存什么类型的值,可以进行什么样的操作,以及遵循什么样的规则。您可以用内建函数 type()查看 Python 对象的类型。因为在Python中类型也是对象,所以

2020-12-11 20:55:35 166

原创 python笔记 3.语言基础

3.1 语句和语法注释:(#)之后的注释一行三引号可以注释多行–文档说明反斜线(\)表示接上一行,用于分行编辑同一语句闭合操作符(各种括号,三引号)可以多行书写推荐使用闭合操作符代替反斜线分号(;)同一行书写多个,不推荐冒号(:)将代码块(一个子句)的头和体(即代码组)分开缩进区分不同的代码组不同python文件标记为不同的模块3.2 类型(待定,python中皆对象)Python中的数据类型很多,而且也允许我们自定义新的数据类型,以下为几种基本数据类型。整型

2020-12-07 20:30:15 85

原创 python笔记 2. python解析器

1. python解析器1.1 使用在安装好python之后,将其加入系统环境变量,即可在终端中调用python解析器。启动方式:方式一:键入python命令(安装多个版本时需要根据安装设置键入python2.X或python3.X)Users\XXX> python方式二:运行某个文件Users\XXX> python test.py在终端输入并执行指令时,解释器运行在交互模式(interactive mode)。在这种模式中,它会显示 主提示符(primary pro

2020-12-07 20:19:18 553

原创 python笔记 1. 简介

python简介1. python的学习资源:2. python的一些优点:3. Python的一些缺点:4. Python的一些应用领域1. python的学习资源:一些有用的网站官方教程文档API参考菜鸟教程一些比较好的书籍《python简明教程》《python核心教程》《python cookbook》《python学习手册》《python源码剖析》PS:电子书都可以在这里找到: jiumo search2. python的一些优点:Python 是一种编程语言

2020-11-27 20:32:52 75

原创 win10入门使用LaTeX

环境的配置——TeXlive+TeXstuido1.下载安装TeXlive1.1下载安装包和工具从官方站点下载TeX Live 安装包。下载地址:官网,清华大学镜像站,中国科技大学镜像站安装需要使用虚拟光驱软件,推荐一个绿色工具即UltraISOv9.6.2.30591.2开始安装解压打开UltraISOv9.6.2.3059加载下载好的ISO文件右键打开右键以管理员...

2019-02-13 15:14:37 548

原创 Windows10使用GitHub入门

1.注册GitHub官网账号GitHub官网地址2.下载和安装Gitgit下载网址运行安装文件,根据个人选择配置路径,其他选项选取默认项3.获取个人密匙打开Git Bash,输入以下指令获取SSH KEY$ ssh-keygen -t rsa -C "your_email@youremail.com"#your_email@youremail.com改为你在github上注册的邮箱...

2019-02-10 23:43:07 264

原创 Ubuntu18.10下使用Anaconda3安装TensorFlow

1.环境说明(tensorflow只支持64位)Ubuntu18.10-64位Anaconda3-1.7.2conda-4.6.2python-3.7.12.新建虚拟环境conda create -n env_name python=#version//env_name为新建的环境名,#version为已安装的Python版本号本例使用Python3.7.1创建虚拟环境te...

2019-02-10 22:44:22 346

原创 Ubuntu18.10安装Anaconda3

1.下载安装包根据Ubuntu已安装的Python版本选择对应的安装文件官网清华镜像网站(下载速度更快)2.安装拷贝文件到Ubuntu的downloads目录,打开终端进入目录cd /downloads2.1执行命令sudo bash Anaconda3-5.3.1-Linux-x86_64.sh2.2按Enter键阅读注册信息,输入“yes”同意注册条款2.3选择安装位置...

2019-02-10 09:51:56 913

原创 Leetcode #7

Leetcode 记录 #71. 使用C++/* LeetCode practice #7: Reverse IntegerGiven a 32-bit signed integer, reverse digits of an integer.*/class Solution {public: int reverse(int x) { //chage type in...

2019-02-09 18:17:36 263

原创 Ubuntu18.10安装MPICH

Ubuntu18.10安装MPICH1.官网下载压缩文件:官网下载网址本例选择mpich-3.32.编译器检查gcc --versiong++ --versiongfortran --versionecho $SHELL如果尚未安装对应的编译器,可执行sudo apt install XXX命令进行安装3.解压与配置创建安装文件夹 :mkdir mpich-inst...

2019-02-04 16:14:48 2970 1

原创 使用VMware14安装Ubuntu18.10

使用VMware14安装Ubuntu18.101.新建虚拟机选择推荐的典型配置—> 稍后安装操作系统—> 选择Linux系统的Ubuntu版本—> 虚拟机命名与安装位置—> 指定磁盘容量为20G,选择存储为单个文件—> 完成2.下载安装系统2.1下载镜像文件下载网址:官网(https://www.ubuntu.com/download/desktop...

2019-02-04 12:46:58 798 1

原创 Scipy练习

import numpy as npfrom scipy.optimize import leastsqm = 20n = 10A = np.random.rand(m,n)b = np.random.rand(m,1)#Now find x = arg minx ||Ax - b||2#S(b) = ||Xb-y||2 -->_b = arg min(S(b))#...

2018-06-13 10:33:57 216

原创 python练习——matplotlib

import numpy as npimport matplotlib.pyplot as pltimport mathx = np.linspace(0,2,5)y1 = np.power(np.sin(x-2),2)y2 = y1*np.power(math.e,-(x ** 2))#plt.plot(x,y1,'r-',label = 'y = $x^2$')#plt.plo...

2018-05-30 20:24:07 364

原创 numpy练习

import numpy as npfrom scipy.linalg import toeplitz#scipy.linalg.toeplitz(c, r=None)n = 200m = 500A = np.random.normal(size=(n,m))c = np.random.rand(1,m)r = np.random.rand(1,m)#print(c)#pri...

2018-05-22 16:42:55 192

原创 第九周——LeetCode_78. Subsets

Given a set of distinct integers, nums, return all possible subsets (the power set).Note: The solution set must not contain duplicate subsets.class Solution(object): def subsets(self, nums): ...

2018-05-02 22:57:54 103

原创 LeetCode---83. Remove Duplicates from Sorted List

Given a sorted linked list, delete all duplicates such that each element appear only once.# Definition for singly-linked list.# class ListNode(object):# def __init__(self, x):# self.val...

2018-04-30 08:43:29 136

原创 python练习——LeetCode237 Delete Node in a Linked List

Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the linked list is 1 -> 2 -> 3 -> 4 and you are given the third node with ...

2018-04-28 09:25:26 145

原创 python练习——34_Leetcode

我的解答:1.def searchRange(nums, target): """ :type nums: List[int] :type target: int :rtype: List[int] """ answer = [] flag = 0 if len(nums) ==...

2018-04-23 13:20:19 145

原创 python练习——文件输入输出与异常

1.读取文件with open('learning_python.txt') as file_object: context = file_object.read() print(context)with open('learning_python.txt') as file_object: #遍历对象 for line in file_object: print(line.rs...

2018-04-05 16:08:17 528

原创 python练习——类

1.类的创建与实例化#9-1class restaurant(): def __init__(self,name,cuisine_type): self.restaurant_name = name self.cuisine_type = cuisine_type def describe_restaurant(self): print(self.restaurant_n...

2018-04-05 11:27:00 838

原创 python练习——函数

1.函数的定义# -*- coding:gbk -*- 支持中文注释def my_book(book_name,writer): """介绍书籍""" print("my favorite book is "+book_name+ " writen by " +writer+" \n")book_name = input("what is your favorite b

2018-03-28 20:38:22 394

原创 python练习——用户输入与while循环

7-2costomers = input("how many people come for dinner?\n")costomers = int(costomers)if costomers > 8:... print("sorry we can not serve all of you.\n")... else:... print("welcome, ple...

2018-03-26 21:38:05 291

原创 python练习——字典

1.字典定义my_friend = { 'first_name' : 'lin', 'last_name' : 'feng','age' : 20, 'city' : 'xueyue' }print(my_friend)2.遍历字典注:print()语句当中字符串拼接需将value强制转换为stringfor key, value in my_friend.items(): print...

2018-03-21 22:36:45 764

原创 python练习——if条件语句

1.简单条件语句判断alien_color = 'green' if alien_color == 'green':...     print('5 points!\n')... else:...     print("wrong!\n")2.判断列表元素是否存在 fruit = ['banana', 'apple', 'orange', 'watermalon'] if 'apple' in f...

2018-03-19 21:29:30 620

原创 操作列表的部分练习

1.遍历列表pets = [' cat ', ' dog ', 'bird']for pet in pets:    printf(' A '+pet+' wound make a great pet!\n')printf( 'Any of these animals wound make a great pet!\n')2.列表解析与数值列表square = [value**2 for valu...

2018-03-18 13:09:04 378

原创 python入门——列表简介的相关练习

1.元素的增删friends = [ 'alice', 'bob', 'cindy', 'Tom']for person in friends: print(person.title()+',how are you?\n')print( friends[1].title()+' is not here, but lucy have come here.\n')friends[1] = 'lucy'...

2018-03-12 17:25:35 203

原创 《python编程——从入门到实践》第二章部分习题练习

2-1~2-4:1.字符串name = ‘python’print("hello "+name)print('hello '+name.upper())    -----将变量name的字符全部改成大写print('hello '+name.lower())    ------将变量name的字符全部改成小写print('hello '+name.title())    ------将变量name...

2018-03-08 23:38:59 190

浏览python官网发现的有趣点

1.python的应用有非常多,除了主要的网站开发、科学研究和数据处理等应用之外,我觉得比较突出的一点是python在教育方面的优势,尤其是针对于没有编程基础的人来说。我是C语言入门的,能够感受得到python与C语言存在着非常明显的不同。C语言是比较接近底层的,学起来比较困难复杂,而python是非常简洁的,往往是一行代码就能够搞定C语言用好几行代码才能完成的东西。2.python官网比较有趣的...

2018-03-06 08:20:46 115

立个 flag

作为一名程序员入门小白,现在开始学习一门新的语言:python。等到某一天修炼成为了python高手了,我希望能够自己开发出一款流行的火爆游戏,还有搭建属于自己的或者可供所有人使用的网站。...

2018-03-06 08:10:42 314

操作系统考研辅导教程

操作系统考研辅导教程,相关知识介绍比较完备,可以用作考研复习资料和平时学习复习资料

2018-07-03

Parallel Computer Architecture - A Hardware Software Approach

The most exciting development in parallel computer architecture is the convergence of traditionally disparate approaches on a common machine structure. This book explains the forces behind this convergence of shared-memory, message-passing, data parallel, and data-driven computing architectures. It then examines the design issues that are critical to all parallel architecture across the full range of modern design, covering data access, communication performance, coordination of cooperative work, and correct implementation of useful semantics. It not only describes the hardware and software techniques for addressing each of these issues but also explores how these techniques interact in the same system. Examining architecture from an application-driven perspective, it provides comprehensive discussions of parallel programming for high performance and of workload-driven evaluation, based on understanding hardware-software interactions.

2018-04-09

空空如也

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

TA关注的人

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