遇见YY

导航

 
上一页 1 2 3 4 5 6 7 ··· 13 下一页

2020年12月19日

摘要: 这个没用选择使用最新版本的folly,而是原则了v2018.09.10.00(没有为什么,主要不是想选最新的!) 下载tar.gz源码包:https://github.com/facebook/folly/archive/v2018.09.10.00.tar.gz 1:按照read.me文件安装相关 阅读全文
posted @ 2020-12-19 16:12 一骑红尘妃子笑! 阅读(816) 评论(0) 推荐(0)
 

2020年12月14日

摘要: 1:安装相关工具包: $ sudo apt-get install autoconf automake libtool curl make g++ unzip 2:下载源码,可以到网站https://github.com/protocolbuffers/protobuf/releases/lates 阅读全文
posted @ 2020-12-14 09:41 一骑红尘妃子笑! 阅读(225) 评论(0) 推荐(0)
 

2020年12月13日

摘要: 题目来源:https://leetcode-cn.com/problems/longest-palindromic-substring/submissions 思路:动态规划(参看官方解析) 关键点: 1:对于字符串长度大于2,状态转移方程:P(i,j)=P(i+1,j−1) && (Si​==Sj 阅读全文
posted @ 2020-12-13 17:05 一骑红尘妃子笑! 阅读(130) 评论(0) 推荐(0)
 
摘要: 原题:https://leetcode-cn.com/problems/longest-substring-without-repeating-characters package main import "strings" func lengthOfLongestSubstring(s strin 阅读全文
posted @ 2020-12-13 15:41 一骑红尘妃子笑! 阅读(80) 评论(0) 推荐(0)
 

2020年12月11日

摘要: go语言自定义结构体实现io.Write接口,并测试func Fprintf(w io.Writer, format string, a ...interface{}) (n int, err error) 函数。 package main import "fmt" type Demo struct 阅读全文
posted @ 2020-12-11 22:03 一骑红尘妃子笑! 阅读(427) 评论(0) 推荐(0)
 

2020年12月9日

摘要: go代码: package main import "fmt" type Animal interface { run() walk() } type Dog struct { Id int } func (dog Dog) run() { fmt.Printf("I am Dog,I can Ru 阅读全文
posted @ 2020-12-09 20:26 一骑红尘妃子笑! 阅读(930) 评论(0) 推荐(0)
 

2020年12月6日

摘要: 1:选择的net库下载到本地 下载方式:git clone git@github.com:golang/net.git ...... 2:检查GOPATH路径 打开cmd:输入 go env 3: 更改下载下来的文件夹名称为net放在C:\GoProject\src\golang.org\x\目录下 阅读全文
posted @ 2020-12-06 12:19 一骑红尘妃子笑! 阅读(1127) 评论(1) 推荐(0)
 

2020年12月1日

摘要: demo地址:https://github.com/keras-team/keras/blob/2.3.0/examples/conv_lstm.py import numpy as np def generate_movies(n_samples=1200, n_frames=15): row = 阅读全文
posted @ 2020-12-01 10:52 一骑红尘妃子笑! 阅读(162) 评论(0) 推荐(0)
 

2020年11月30日

摘要: import numpy as npimport pylab as plif __name__ == '__main__': fig = pl.figure(figsize=(10, 5)) ax = fig.add_subplot(121) toplot = np.random.randint(0 阅读全文
posted @ 2020-11-30 21:14 一骑红尘妃子笑! 阅读(716) 评论(0) 推荐(0)
 

2020年11月29日

摘要: import cv2 import imageio import matplotlib.pyplot as plt import numpy as npif __name__ == '__main__': temp0 = np.array([[[[0.], [1.]], [[0.], [1.]], 阅读全文
posted @ 2020-11-29 21:42 一骑红尘妃子笑! 阅读(594) 评论(0) 推荐(0)
 
上一页 1 2 3 4 5 6 7 ··· 13 下一页