- 博客(160)
- 资源 (2)
- 收藏
- 关注
原创 Save Money for Your Company 最小矩形覆盖(非计算几何)/找出N条直线相交点的边缘点/ find the dominating points of N lines
【代码】Save Money for Your Company 最小矩形覆盖(非计算几何)/找出N条直线相交点的边缘点/ find the dominating points of N lines.You are the director of a mining enterprise, aiming to purchase an mining land for your company. This land has already been criss-crossed with a lot of minin
2022-10-25 12:51:16
469
原创 The Longest Common Consecutive Subsequence of X and Y 最长公共连续子数列/最长公共连续子序列
【代码】The Longest Common Consecutive Subsequence of X and Y 最长公共连续子数列/最长公共连续子序列。Given 2 arraysXandY, return the MAXIMUM length of the longest common consecutive subsequence. If no such subsequence exists, return 0.
2022-10-25 10:56:36
459
原创 The Longest Subsequence with Equal Step 最长等差序列/最长等差数列
【代码】The Longest Subsequence with Equal Step 最长等差序列/最长等差数列。Given an array of integersXand an integerstep, find the length of the longest subsequence ofXwhere integers in this subsequence form an arithmetic sequence with difference ofstep.
2022-10-25 10:54:59
261
原创 Number of Shortest Paths 最短路的数量
【代码】Number of Shortest Paths 最短路的数量.You are a manager working in a big logistics company, and you have to investigate routes of packages in the city. There are a lot of transfer stations in this city, and packages can only be transfered from one station to
2022-10-25 10:53:13
379
原创 灯塔阅读 - Scientists Are Trying to Pinpoint the Origin of Mysterious Signals From Outer Space
Have you ever looked up at the sky and wondered if there were aliens looking down upon you? Have you ever turned your radio to a specific frequency and picked up mysterious signals that appeared to be coming from far away? This phenomenon has been observed
2022-10-12 10:56:40
1439
原创 灯塔阅读 - Astronomers spot repeating radio burst patterns from deep space - 太空垃圾:是时候给宇宙来一场大扫除了
Astronomers have spent six years watching an unknown object a million, billion light years away explode again and again. They still don't know what's expelling the violent bursts of energy, but one team thinks they've figured out at least when the extragal
2022-10-12 10:53:19
2038
原创 conda update anaconda卡住/卡死/时间慢/solving evironment不动
想更新下spyder,然后conda update anaconda就一直在solving environment那里不动了。
2022-09-02 11:03:08
5449
1
原创 Ubuntu pycharm no module named
File-setting里python interpreter可以看到已经装过了cityflow。Run edit configurations里也要注意选对interpreter。可以直接terminal里开python3 import cityflow。下了一个cityflow的项目,本地已经pip install . 过了。
2022-08-30 15:45:15
727
1
原创 torch.normal(mean, std, size, *, out=None)
X = torch.normal(0, 1, (1000, 2))sample一个1000x2的矩阵,每个值都服从标准正态分布N~(0,1)
2022-05-28 17:05:05
376
原创 Python torch.distributions.multinomial.Multinomial
torch.distributions.multinomial.Multinomial(total_count=1,probs=None,logits=None,validate_args=None)probs是权重表,不是相加和为1也没关系,会自动帮你归一化,total_count就是要模拟多少次。sample后面可以加数值让他做多少批次。下面是掷骰子的例子>>> fair_probs = torch.ones([6]) / 6>>> mult...
2022-05-28 16:42:49
831
原创 范数,LP范数
L2L_2L2范数和L1L_1L1范数都是更一般的LpL_pLp范数的特例:∥x∥p=(∑i=1n∣xi∣p)1/p.\|\mathbf{x}\|_p = \left(\sum_{i=1}^n \left|x_i \right|^p \right)^{1/p}.∥x∥p=(i=1∑n∣xi∣p)1/p.L2L_2L2范数:假设nnn维向量x\mathbf{x}x中的元素是x1,…,xnx_1,\ldots,x_nx1,…,xn,其[L2L_2L2范数是向量元素平方和的平方根:]∥
2022-05-27 15:22:41
1095
转载 强化学习入门算法
Q−LearningQ -\mathrm{Learning}Q−Learning 算法介绍Q−LearningQ- \mathrm{Learning}Q−Learning是强化学习的算法之一,Q−LearningQ- \mathrm{Learning}Q−Learning的主要目的就是学习状态动作价值函数的Q(s,a)Q(s,a)Q(s,a),其中Q(s,a)Q(s,a)Q(s,a)表示的是在给定当前状态s和采取动作a之后能够获得的收益期望。Q−LearningQ- \mathrm{Learning}Q−
2022-05-26 18:22:01
471
原创 nodejs,优快云转markdown
如果你有nodejs可以使用clean-mark来快速转换csdn网页为md文件安装:npm install clean-mark --global使用:clean-mark "你要转换的csdn网址"如果安装的时候遇到rollbackFailedOptional verb npm-session的问题,1、去掉npm代理:npm config rm proxynpm config rm https-proxy2、修改npm的资源镜像链接:npm config
2022-05-26 17:49:13
432
原创 无法打开内核设备“\\.\Global\vmx86”: 系统找不到指定的文件
net start vmcinet start vmx86net start VMnetuserifsc config vmci=autosc config vmx86=autosc config VMnetuserif=auto
2022-03-03 11:40:09
776
1
原创 C# 删除指定目录下具有某后缀的全部文件
void DelectLog(string srcPath) { try { DirectoryInfo dir = new DirectoryInfo(srcPath); FileSystemInfo[] fileinfo = dir.GetFileSystemInfos(); //返回目录中所有文件和子目录 foreach (FileSyst.
2022-01-11 10:17:45
920
原创 C# 删除指定目录下全部文件
void DelectDir(string srcPath) { try { DirectoryInfo dir = new DirectoryInfo(srcPath); FileSystemInfo[] fileinfo = dir.GetFileSystemInfos(); //返回目录中所有文件和子目录 foreach (FileSyst.
2022-01-11 10:16:23
2367
1
原创 C# 通过pid获取hwnd / 通过pid查找hwnd
hwnd= Process.GetProcessById(99999).MainWindowHandle;
2021-12-24 17:12:04
1382
原创 c# 获取进程列表
Process[] ps = Process.GetProcesses(); int km = ps.Count(); for (int ki=0;ki<km;ki++) { string info = ""; info = ps[ki].Id + " " + ps[ki].ProcessName + " " + ps[ki].MainWindowTitle; textBox1.AppendText("\n"+info+"\r");}
2021-12-24 16:45:35
1535
原创 win10家庭版 VMware Workstation 和 Device/Credential Guard 不兼容
输入bcdedit /set hypervisorlaunchtype off重启即可
2021-07-27 06:44:31
272
原创 win10 WSL windows subsystem for linux update setup wizard ended prematurely
从microsoft官网上看的安装过程,结果触发了这个错,搜了下有人说什么更新.net 4.5,而我.net是4.8,未果解决方案:开始菜单搜索 启用或关闭windows功能勾选适用于Linux的Windows子系统,确定。然后去microsoft store里安装ubuntu或者其他你喜欢的linux系统然后登录自己的Microsoft账号,install即可...
2021-07-25 10:23:13
5458
原创 WslRegisterDistribution failed with error: 0x8007019e The Windows Subsystem for Linux optional compo
解决方案:1.win+x,选择Windows PowerShell(管理员)2.输入:Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-LinuxEnter回车确认3.输入Y,重启windows4.重新打开已经安装的子系统,等几分钟,输入username和password。...
2021-07-25 10:15:09
1897
原创 Exception in thread “main“ java.io.IOException: Cannot run program “python3“: CreateProcess error=2,
解决方案:环境变量里系统变量增加一个PYSPARK_PYTHON = D:\Anaconda3\python.exe
2021-07-21 11:52:08
1972
原创 win10 HADOOP_HOME and hadoop.home.dir are unset
解决方案:https://mirrors.tuna.tsinghua.edu.cn/apache/hadoop/common/清华镜像下一个hadoop先,这里我用的2.10.1,因为它相对其余的比较小。下载完将winrar兼容性设为管理员模式运行HADOOP_HOME你的解压路径系统变量,path里添加一下%HADOOP_HOME%\bin*注:如果你没有设置过环境变量JAVA_HOME,请先设置JAVA_HOMR为你的jdk安装地址...
2021-07-21 11:50:04
982
原创 win10英伟达NVIDIA无法登录
开始菜单,cmd,管理员运行,netsh winsock reset,重启控制面板,网络和internet,查看基本网络信息并设置连接,点击你的网络连接(本地或者无线),属性,Internet 协议版本4 (TCP / IPv4)”,使用下面的DNS服务器地址,首选4.2.2.1,备用4.2.2.2,重启GeForce Experience...
2021-07-12 01:28:43
3368
原创 c# OpenRead 请求被中止: 未能创建 SSL/TLS 安全通道。
以前一直用的一套看指定网页的源代码的,今天突然报了个错,“System.Net.WebException”类型的未经处理的异常在 System.dll 中发生其他信息: 请求被中止: 未能创建 SSL/TLS 安全通道。 private string GetWebClient(string url) { string strHTML = ""; WebClient myWebClient = new WebCl.
2021-04-21 15:04:35
1187
原创 OBS 视频输出处于活动状态。请关闭任何输出以更改视频设置
想调下FPS来着,结果发现灰色的,看了一下原来是虚拟摄像头的问题。解决方法:工具-虚拟摄像头-停止,即可解决。
2021-02-06 18:04:16
17575
1
原创 obs virtual camera
https://obsproject.com/forum/resources/obs-virtualcam.949/右上角go to download,下完一路下一步打开obs,添加一个媒体源记得勾选循环然后右键媒体源,选择调整输出大小到源大小...
2021-01-01 10:30:35
4480
原创 虚拟机突然没网了,虚拟机突然鼠标失灵
多半是你卸载VMware tools所致。解决没网问题:win10:右键“此电脑”,选择“管理”,找到图示的两项,右键启动即可鼠标问题,则要进入到虚拟机中,用键盘操作进入到Vmware Tools的安装盘里,选择setup之后一直enter键选择下一步即可最后重启之后恢复原状...
2021-01-01 01:36:57
862
原创 vmware12创建win10虚拟机
准备工作,自备一个win10镜像iso文件,找你自己平时用的(估计自己做虚拟机也多半是怕网上下的vmx可能有问题)这里准备35G是因为系统11G,C盘分15G,剩下20G做别的,用不到太多,看需求到这里设置一下,加点内存和处理器,方便一开始的一些安装开机,这里先分个盘,我选择PE系统分一下分完就一键操作即可接下来就是等它跑完再去新系统里设置和安东西(给虚拟机装系统)安完后虚拟机里自动重启到这相当于做完了.
2020-12-25 09:40:30
523
运动会成绩管理系统的设计与实现
2016-08-03
菜品信息管理
2016-08-03
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人