自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

zzzzzzzhc的博客

菜的一*

  • 博客(37)
  • 问答 (1)
  • 收藏
  • 关注

原创 go语言程序设计第六章方法

2021-04-19 15:02:12 145

原创 go语言程序设计第五章函数简介

这篇主要是一些C++和go都比较类似的一些特性,一些相当不同的放在后面主要内容包括声明,递归,可变参数数量,函数值(指针),匿名函数,多返回值。其中匿名函数的内容目前尚且不够全面。...

2021-04-15 16:08:43 117

原创 go语言程序设计第四章结构体

2021-04-15 13:19:14 91

原创 go语言程序设计第四章数据结构map

2021-04-15 12:33:19 59

原创 go语言程序设计第四章数组和slice

2021-04-14 17:14:00 58

原创 go语言程序设计第三章摘要

讲的是基本的数据类型,大致上跟C是一致的

2021-04-14 15:33:26 59

原创 go语言程序设计第二章摘要

主要与C或C++进行对比

2021-04-14 13:29:53 77

原创 go语言入门之环境安装

1:下载https://golang.org/dl/2:安装傻瓜式安装,要记得安装目录3:配置环境变量PATH中加一个go/bin的路径

2021-04-13 16:21:30 88

原创 同态加密入门/进阶/放弃

干同态加密已经有一段时间了那么,,,,哎呀太忙啦没时间写博客QAQ有相关兴趣和问题的可以私信我沟通沟通QAQ

2020-11-30 10:37:32 181 1

原创 什么叫做FFT?你给我翻译翻译什么叫做快速傅里叶变换

https://www.bilibili.com/video/av90868746/?p=2

2020-09-19 17:02:35 166

原创 python作业之sklearn

题目:1 Create a classification dataset (n samples 1000, n features 10) 2 Split the dataset using 10-fold cross validation 3 Train the algorithms GaussianNB SVC (possible C values [1e-02, 1e-01,...

2018-06-17 21:05:04 352

原创 python作业之pandas seaborn

题目为:Part 1 For each of the four datasets…Compute the mean and variance of both x and y Compute the correlation coefficient between x and y Compute the linear regression line: y=β0+β1x+ϵy=β0+β1x...

2018-06-12 00:26:19 348

原创 python作业之scipy

题目: 1:`import numpy as np A = np.random.randint(-20, 20, size = 30 * 20).reshape(30, 20) b = np.random.randint(-20, 20, size = 30 * 1).reshape(30, 1) x = np.dot(np.dot(np.linalg.inv(np.dot(A...

2018-06-04 00:10:48 379

原创 操作系统之随便贴点东西

#include <pthread.h>#include <stdio.h>#include <bits/stdc++.h>using namespace std;string filename1,filename2;int number1 , number2 ;string from,to; string string_replace(str...

2018-05-30 16:06:11 174

原创 pyhton作业之matplotlib

题目:1:`import numpy import matplotlib.pyplot X = numpy.arange(0, 2.00, 0.02) Y = numpy.sin((X - 2) * numpy.exp(-X * 2)) * 2 matplotlib.pyplot.plot(X, Y) matplotlib.pyplot.title(“A function”)...

2018-05-28 17:19:20 228

原创 python作业之numpy and scipy

import numpyfrom scipy import linalgimport timeA = numpy.random.normal(size=(200, 500))B = linalg.toeplitz(list(range(0,500)))'''1def ex1(A,B,X): I = numpy.eye(500) print(numpy.dot(A...

2018-05-18 15:02:36 484

原创 leetcod 213 House Robber II

After robbing those houses on that street, the thief has found himself a new place for his thievery so that he will not get too much attention. This time, all houses at this place are arranged in a ci...

2018-04-30 22:01:50 150

原创 leetcode 23 合并n个链表

Definition for singly-linked list.Merge K Sorted Lists (#23)Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. Example: Input: [ 1->4->...

2018-04-30 21:56:39 345

原创 leetcode 4. 两个排序数组的中位数

给定两个大小为 m 和 n 的有序数组 nums1 和 nums2 。请找出这两个有序数组的中位数。要求算法的时间复杂度为 O(log (m+n)) 。示例 1:nums1 = [1, 3] nums2 = [2]中位数是 2.0 示例 2:nums1 = [1, 2] nums2 = [3, 4]中位数是 (2 + 3)/2 = 2.5思路: 两个数组合并,然...

2018-04-23 22:10:40 129

原创 以后一大段时间要干的事情

之前说要整python爬虫,因为出现了一点意外,估计要等到很久以后才能整了。 以后博客应该会有 操作系统实验 python课要学习的 python网络编程 计算机图形学的pyopengl三大块,以及懒得写到博客的计算机网络实验,以及不知道什么时候开始动工的魂斗罗成了,爬虫什么的,还是膜 膜康仙吧!!!!!!!!!...

2018-04-19 16:26:05 211 1

原创 (16 DOS)裸机汇编之实现主程序调用三个子程序(操作系统第一次实验)

本来想复制粘贴实验报告,但是发现图片不能够复制粘贴,而且意义不大。。。。。。。可以。第一步:要会打汇编代码,弄成asm后缀,用以nasm第二步:将汇编代码nasm编译成可行的二进制文件,再把多个文件弄成整一个文件。第三步:将二进制文件当做软盘,载入虚拟机中。那么虚拟机在开机的时候就可以运行我们所写的代码。可以那么这篇博文就到这里结束啦    第一步:写汇编代码,以最简单的输出HELLO,WORLD...

2018-04-09 14:08:29 2231 1

原创 第二个简单爬虫之爬取动态网站图片

留着先,有空写

2018-04-09 14:05:34 527 2

原创 第十一章部分作业

11-1def city_country(city, country):    return(city.title() + ", " + country.title())import unittestclass CitiesTestCase(unittest.TestCase):    def test_city_country(self):        """Does a simple cit...

2018-04-09 14:05:06 1231

原创 第十章部分习题

10 - 1 with open('a.txt') as text: all = text.read() print(all)with open('a.txt') as text: for line in text : print(line.rstrip())with open('a.txt') as text: lines = text.readlines()print (lines) 1...

2018-04-02 09:03:43 803

原创 第九章部分习题

9-1:class Restaurant(): def __init__(self): self.name = "fandian" self.type = "hahaha" def print(self): print(self.name + self.type) def working(self): print (" restaurant is working now ")a = Res...

2018-04-02 08:37:17 333

原创 第八章部分习题

8.1def display_message():    msg = "helllooooooo!!!"    print(msg)display_message()8-2def book(name):    """哈哈哈哈"""    print("one of my favorite books is " + name + " !")name = "312"book

2018-03-29 14:24:29 203

原创 第一个简单爬虫之下载小说

仅做学习用途!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!看小说请支持正版!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!做了小飞船打外星人之后,课本剩下的两个大项目都不想做,一个看都没看,一个做起来越做越生气。于是把目光放到了我康康康康康康康!!!仙博客更新过的 python爬虫上找到了一个比较傻瓜式的简单博客教程,开始了py...

2018-03-29 11:39:22 2032 8

原创 第十四章 【pygame】增加积分系统,增加PLAY按钮,增加难度系统

这里的内容早早就弄完了,后来一直在弄pyinstaller打包成exe一直都失败,所以一直没更新。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。这章完成三个功能:1:难度系统,根据消灭的怪物的波数更改游戏的难度,为了简单起见,难度增加直接体现在外星人的行数和移动速度的增加,在实现的过程中,只需要增加一个hard参数,传递到外星人类里面,在设置行数和移动速...

2018-03-15 17:49:00 3533 4

原创 第十三章 【pygame】创造外星人并射死他们并建立失败条件

       在十二章中,我们完成了pip pygame的下载,完成了准备工作,在代码中也实现了飞船的上下左右四个方向的移动,并且确保了不会飞机不会飞出屏幕。同时,也让飞机能够发射出矩形状的子弹,并设置了子弹的数量限制,控制了子弹的飞行速度,还在子弹飞出屏幕的时候,删除该子弹以节省内存。       再进一步,在第十三章中,我们要依次完成以下功能        1:创建一个在左上角的外星人    ...

2018-03-14 20:35:58 1039

原创 第十二章 【pygame】 做一架能射子弹的小飞船

  基本上是按照课本给的路线和代码。一:安装pip:点击打开链接    点击里面的getpip.py。则出来get-pip.py的代码在浏览器里面,复制代码到编辑器中运行则pip安装完成。二:安装pygame:点击打开链接  找到pygame一系列 我的电脑是win10 64位 则下载 pygame-1.9.3-cp36-cp36m-win_amd64.whl   下载到项目文件夹中 运行cmd ...

2018-03-13 11:35:33 1926 8

原创 第七章部分习题

7-3number = input()number = int(number)number= number%10;if not number : print("Yes")else : print("No")7-5while True:    age = input()    if age == 'quit':        break    age = int(age)    if age &lt...

2018-03-09 13:48:34 462

原创 第六章部分习题

6-1man = {'finame' : "a",'laname' : "b",'age' : 11 , 'city' : "c"}print(man)6-5rivers = { 'nile': 'egypt', 'mississippi': 'united states', 'fraser': 'canada', 'kuskokwim': 'alaska', ...

2018-03-08 18:54:29 382

原创 第五章部分习题

5-2str1 = " mary"str2 =" Mary"print(str1 == str2)print(str1.lower() == str2.lower())name = list(range(1,11))if 2  in name:    print("hhhhhh")if 33 not in name:        print("gggggg") 5-5color  = "red"...

2018-03-08 17:27:23 329

原创 第四章部分习题

4-1pizza = ["a","b","c"]for i in pizza: print("i like " + i +" pizza")print("i really love pizza")4-3number=[]for i in range(1,1000001): number.append(i);print(min(number))print(max(number))print(

2018-03-08 16:53:37 640

原创 第三章部分习题

3-1names = ["321","456","789"]print (names)for i in names: print(i)3-5names = ["321","456","789"]no = names.pop();print(no + "cant come")names.append("110")print(names)for i in

2018-03-08 16:28:58 233

原创 第二章部分习题

2-2    a="123"    print (a)    a="456"    print(a)2-4name = "mary"print(name.lower())print(name.upper())print(name.title())2-7name = "   mary  "print(name.lstrip())print(name.rstrip())print(name.strip...

2018-03-07 22:45:39 369

原创 python(官网)初体验以及学习目标(flag)

    Life is short, you need Python。    第一次上python官网仅仅是为了下载python,按照老师的说法,一路下来用三个方法一路打出了“Hello,World”。    在用python向世界打招呼之后,就算是正式开始了学习、应用python的旅途。    第二次上python官网就要好好的浏览浏览了。    1:必须承认的是,上面有很多东西是我看不懂得,比...

2018-03-07 10:57:39 1147

空空如也

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

TA关注的人

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