自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 封印解除:如何在Win10家庭版中启用组策略

封印解除:如何在Win10家庭版中启用组策略常常关注IT之家的朋友们一定知道,组策略对于优化和维护Windows系统来说十分重要。众所周知,Windows家庭版中并不包含组策略,对于使用家庭版Windows的朋友来说,十分不方便。本教程将以Windows10创意者更新家庭版为例,介绍如何加入组策略。曾在Windows 7中使用Windows Anytime Upgrade升级的朋友一定知道...

2020-05-06 20:07:45 338

原创 word参考文献引用

主要思路:插入-交叉引用(链接)参考一下两篇文章https://blog.csdn.net/qq_40078121/article/details/88681605https://blog.csdn.net/han1140521792/article/details/86616643...

2020-03-10 13:35:01 261

转载 ipad做win10扩展屏的方法

1.Splashtop Personal 只能复制+无线控制2.想扩展用Splashtop Wired XDisplay(AppStore蓝色图标,免费)3.电脑需安装Splashtop Wired XDisplay Agent(网址:https://www.splashtop.com/wiredxdisplay)4.电脑需安装iTunes5.插数据线,两边都打开就行6.接下来投影...

2020-03-03 12:43:04 16158 7

原创 Anaconda上的SSLError解决方法

前情提要在安装新版Anaconda(py3.6以上)时,有几率会碰上讨厌的SSLError(详情见下),网上的解决方法并没有一针见血,此答案主要用来做一个记录(逃问题描述:pip is configured with locations that require TLS/SSL, however the ssl module in Python is not availableCaused...

2020-02-28 18:20:19 4785 5

转载 Windows10下将sublime添加到右键快捷菜单

win+R打开cmd窗口,输入regedit,打开注册表依次找到HKEY_CLASSESS_ROOT > * > Shell,【目录一定找清楚】下面新建项,命名为Sublime Text3。【这个名是右键的时候显示的文字】在项“Sublime Text3”下新建字符串值,命名为icon,值为 C:\Program Files\Sublime Text 3\sublime_t...

2020-02-28 18:04:00 452

转载 更改Linux文件及文件目录权限

原文:https://www.cnblogs.com/sxdcgaq8080/p/7498906.html提取了关键部分r: 读,对应数值4w: 写,对应数值2x:执行,对应数值1-:无,对应数值0例子:若要递归将目录下所有文件都更改权限,则需要:chmod -R 744/mnt/fileA这个-R就代表递归...

2019-07-18 16:11:03 191

原创 pipreqs------查找python项目依赖并生成requirements.txt

转自https://www.cnblogs.com/zhaopanpan/p/9383350.html安装:pip install pipreqs用法:生成requirments.txtpipreqs ./ --encoding=utf8使用requirements.txt安装库:pip install -r requriements.txt附录:...

2019-04-13 21:22:32 273

原创 1001. LL(1)语法分析程序

Description输入开始符号,非终结符,终结符,产生式,LL(1)分析表输出LL(1)分析表此题需要提交实验报告;“实验报告用“学号+姓名+72”Input输入开始符号;非终结符个数,非终结符,空格符分隔;终结符个数,终结符,空格符分隔;产生式的个数,各产生式的序号,产生式的左边和右边符号,空格符分隔;LL(1)分析表中的产生式个数,序号,行符号,列符号,产生式...

2019-04-12 11:31:45 436

原创 词法分析程序设计

Description设一语言的关键词、运算符、分界符的个数与单词如下:struct { int number; string str[10]; } keywords={3,"int","main","return"} ; //关键词struct { int number; string str[10]; } operators ={5,"+","*","=","+=","*="}; //...

2019-03-29 09:28:56 929

转载 vscode 前端插件推荐

转载自https://segmentfault.com/a/1190000011779959

2019-03-18 10:43:49 392

原创 输入文法压缩自产生式文法和不可达文法

Description输入开始符号,非终结符,终结符,产生式压缩自产生式文法和不可达文法后,按非终结符顺序输出产生式;Input输入开始符号;非终结符个数,非终结符,空格符分隔;终结符个数,终结符,空格符分隔;产生式的个数,各产生式的左边和右边符号,空格符分隔;Outputdelete self production:自产生式文法unreached Vn...

2019-03-15 10:13:50 811

原创 输入输出文法2

Description输入开始符号,非终结符,终结符,产生式按非终结符顺序输出产生式;Input输入开始符号;非终结符个数,非终结符,空格符分隔;终结符个数,终结符,空格符分隔;产生式的个数,各产生式的左边和右边符号,空格符分隔;OutputG[开始符号]:按非终结符顺序输出各产生式;Sample Input:Z8 Z E F P G T Q S...

2019-03-08 09:09:59 1028

原创 输入输出文法1

Input8E E+TT T*FE TT FF (E)F iE E-TT T/FOutputG[E]:E::=E+T | T | E-TT::=T*F | F | T/FF::=(E) | i#include <iostream>#include <vector>#include <string>#inc...

2019-03-08 09:07:58 1197

原创 1001. 2 - 字符集集合运算

#include <iostream>#include <vector>#include <set>#include <algorithm>using namespace std;// 将字符串转换为字符集合的形式string remove_similar_char(string str1){ set<char> s...

2019-03-01 11:12:55 285

原创 1000. 1 - 建立一个字符集合

#include <iostream>#include <vector>#include <set>using namespace std;int main(){ string input; cin >> input; set<char> output_set; for(auto &each:input...

2019-03-01 09:40:47 312

原创 WIN10 如何隐藏桌面图标

常规操作在桌面上右键在菜单中选择到查看取消勾选显示桌面图标若要恢复只需要重复操作一遍即可使用快捷键在桌面上使用快捷键(shift + F10) + V + D即可...

2018-12-23 10:04:53 7576

原创 Latex使用技巧、资源集合

latex手写符号查找:http://detexify.kirelabs.org/classify.htmllatex手写符号(公式)查找2:http://webdemo.myscript.com/views/math.html上面这个2功能较全latex表格生成:http://www.tablesgenerator.com/latex_tableslatex 符号大全...

2018-12-15 22:23:19 285

原创 Sklearn部分习题

题目:步骤一:代码:from sklearn import datasetsX,Y=datasets.make_classification(n_samples=1000,n_features=10,n_classes=2)print(X)print(Y)输出:[[-1.80647012 -1.43419604 -0.28311776 ... -0.53762...

2018-06-18 22:04:50 478

原创 CME193习题

题目1:代码1:# your code herex_mean=anascombe.groupby('dataset')['x'].mean() y_mean=anascombe.groupby('dataset')['y'].mean()x_var=anascombe.groupby('dataset')['x'].var() y_var=anascombe.groupb...

2018-06-10 23:26:41 705

原创 Scipy部分习题

题目10.1:代码:import numpy as np from scipy.linalg import * m=10n=5A = np.random.randint(0,30,size=(m,n)) b = np.random.randint(0,20,size=(m,1)) x, res, rnk, s = lstsq(A, b) b1 = norm(b-...

2018-06-02 22:19:42 231

原创 Matplotlib部分习题

题目11.1代码:from scipy import linalgimport numpy as npfrom matplotlib import pyplot#11.1X = np.arange(0, 2.05, 0.05)Y = np.sin((X - 2) * np.exp(-X ** 2)) ** 2pyplot.plot(X, Y)pyplot.title("...

2018-05-25 16:58:28 304

原创 numpy部分习题

题目:代码:from scipy import linalgimport numpy as npn=200m=500A = np.random.normal(0,1,n*m).reshape(n,m)B = linalg.toeplitz(list(range(0,m)))题目9.1:代码:# 9.1def fun1(x): # A(B - λ*I) ...

2018-05-22 21:59:16 454

转载 希腊字母含义及快捷键输入

希腊字母1,α(阿尔法)角度;系数 1 21)中文下输入aerfa即可2)在小键盘开启的状态下,按住Alt键不放,再按小键盘数字42689,放开Alt键就可以打出来2,β(贝塔) 磁通系数;角度;系数 1 21)中文下输入beita即可2)在小键盘开启的状态下,按住Alt键不放,再按小键盘数字42690,放开Alt键就可以打出来3,γ(伽马)...

2018-05-17 15:42:46 8031

原创 Leetcode #746

746.Min Cost Climbing StairsOn a staircase, thei-th step has some non-negative costcost[i]assigned (0 indexed).Once you pay the cost, you can either climb one or two steps. You need to find...

2018-05-02 23:07:02 93

原创 Leetcode #4

4.Median of Two Sorted ArraysThere are two sorted arraysnums1andnums2of size m and n respectively.Find the median of the two sorted arrays. The overall run time complexity should be O(log ...

2018-04-30 23:32:59 97

原创 Leetcode #459

459. Repeated Substring PatternGiven a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the substring together. You may assume the given str...

2018-04-25 23:29:35 280

原创 Leetcode #561

561. Array Partition IGiven an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), …, (an, bn) which makessum ofmin(ai, bi) for all i from 1...

2018-04-23 12:45:19 186

原创 教材第十一章课后习题

11.1代码:#city_functions.pydef city_country(city,country): return(city.title()+', '+country.title())#test_cities.pyimport unittestfrom city_functions import city_countryclass CitiesTest(uni...

2018-04-10 19:36:35 443

原创 教材第十章课后习题 (部分)

代码:#10.1print(10.1)filename = 'test.txt'print("直接读取")with open(filename) as file: contents = file.read(); print(contents)print("逐行存储后读取")sentences = []with open(filename) as file: for li...

2018-04-04 20:06:48 866

原创 教材第九章课后习题 (部分)

代码:#9.1print(9.1)class Restaurant(): def __init__(self,name,cuisine_type,number_served=0): self.name = name self.cuisine_type = cuisine_type self.number_served = number_served def descri...

2018-04-02 16:29:09 685

原创 教材第八章课后习题 (部分)

代码:#8.1def display_message(): print(8.1) print("display_message function runs.") print()display_message()#8.2def favorite_book(book_name): print("My favorite book is "+book_name+".")print...

2018-03-29 18:00:37 564

原创 教材第七章课后习题 (部分)

代码:#7.3print(7.3)num3 = int(input("Please input a num:"))if num3 % 10 == 0: print(str(num3)+" is a multiplier of 10.")else: print(str(num3)+" is not a multiplier of 10.")print()#7.8print(...

2018-03-26 13:52:56 255

原创 教材第六章课后习题 (部分)

代码:#6.1print(6.1)friend_information = { 'first_name' : 'Jack', 'last_name' : 'Ma', 'age' : 18, 'living city' : 'Hong Kong'}for key,value in friend_information.items(): print(key,":",value)...

2018-03-23 00:28:57 302

原创 教材第五章课后习题

代码:#5.1#print(5.1)#print("一个简单的条件测试,可以理解比较后为何返回True或False")#有点长,以及简单,就不写了#5.2print(5.2)#前面几个都比较简单,就不写了#写一下特定的值在列表中的查找list2 = ["one","two","three",1,2,3]if "one" in list2: print("one in l.

2018-03-18 01:25:11 226

原创 教材第四章课后习题

代码:#4.1print(4.1)list1 = ['chicken','beef','fish']for i in list1: print("I like " + i + " pizza.")print("I really love pizza!")#4.2print(4.2)list2 = ['dog','cat','wolf']for i in list2: p...

2018-03-14 22:15:43 1303

原创 教材第三章课后习题(部分)

代码:#3.1names = ['alan','jade','mike']for i in names: print(i,end=" ")print()#3.2for i in names: print(i+", are you ok?")print()#3.3str3 = ['car','bike','bus']for i in str3: print("I l...

2018-03-12 17:26:54 312

原创 教材第二章课后习题

代码:# 2.1print("2.1")str1 = "Python is interesting."print(str1)#2.2print("2.2")str2 = "Python is interesting."print(str2)str2 = "C++ is interesting."print(str2)#2.3print("2.3")str3

2018-03-08 13:03:10 158

原创 浏览python.org的发现 和 成为python高手后的目标

python主页上一进去就有图片的展示,其中显示了python最吸引人的五大特性。整个网页的布局也十分简洁明了,非常的干净,与python其语言本身的风格保持了高度的一致性。在主页上捣腾了一阵,发现其中提供了一个在线的console可以在其中编写python的程序,我试用了一下,确实是可以使用的。许多公司都使用python进行编程开发,包括Youtube, Go...

2018-03-07 11:21:17 390

原创 测试博客——Hello World

测试一下第一个博客,看一下效果。 先输入一个C++代码:#include <iostream>using namespace std;int main(int argc, char const *argv[]){cout << "Hello World!" << endl;return 0;} 再输入...

2018-03-05 19:47:38 140

空空如也

空空如也

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

TA关注的人

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