摘要: 1.首先需要安装git,我使用环境:wsl ubuntu20中自带。 2.在需要上传的代码项目文件夹下首先初始化git仓库,同时在git上新建同名仓库。 git init 3.将文件添加到Git的暂存区(staging area): git add .(点表示当前目录) 或者添加特定文件: git 阅读全文
posted @ 2024-12-01 10:32 __sunshine 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 安装环境:VMware Workstation 16 Pro;Exsi 8.0;虚拟机:ubuntu20 1.首先下载Exsi8.0:https://pan.baidu.com/s/11UgtuWzjkzGwNIWaPyWCpg?pwd=np5p;可以在这个网站上下载其它版本:https://sys 阅读全文
posted @ 2024-07-07 23:22 __sunshine 阅读(801) 评论(0) 推荐(0) 编辑
摘要: 1.什么是跨域? CSRF(Cross-site request forgery),中文名称:跨站请求伪造,也被称为:one click attack/session riding,缩写为:CSRF/XSRF。 https://www.ruanyifeng.com/blog/2016/04/cors 阅读全文
posted @ 2023-09-18 14:30 __sunshine 阅读(6) 评论(0) 推荐(0) 编辑
摘要: DNS 递归解析和迭代解析的区别: 递归是用户只向本地 DNS 服务器发出请求,然后等待肯定或否定答案;而迭代是本地服务器向 DNS 服务器发出请求,DNS 服务器在给出下一级 DNS 服务器的地址,直至得到最终答案。 递归中 DNS 服务器接收到客户机请求,必须使用一个准确的查询结果回复客户机;而 阅读全文
posted @ 2023-07-11 22:43 __sunshine 阅读(153) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/weixin_40837318/article/details/121671160 ubuntu20 使用systemctl 配置frp服务端开机自启: 1.在/etc/systemd/system文件夹下新建一个文件xxx.service [Unit] 阅读全文
posted @ 2023-02-04 18:26 __sunshine 阅读(118) 评论(0) 推荐(0) 编辑
摘要: from scapy.all import * packet0 = rdpcap('G:/testcic/input/ubuntu_chrome_discord_7.pcap') import os #读取dir_path目录下的文件dir_path = r'G:/testcic/input/'fi 阅读全文
posted @ 2023-01-15 22:23 __sunshine 阅读(119) 评论(0) 推荐(0) 编辑
摘要: pytorch中,出现的错误: return torch._C._nn.cross_entropy_loss(input, target, weight, _Reduction.get_enum(reduction), ignore_index, label_smoothing) expected 阅读全文
posted @ 2023-01-07 21:23 __sunshine 阅读(323) 评论(0) 推荐(0) 编辑
摘要: # !pip install matplotlib==3.0.0 import matplotlib.pyplot as plt z = [] # 生成数据 for i in range(50): z.append(random.randint(-100, 100)) plt.title('hell 阅读全文
posted @ 2023-01-07 16:37 __sunshine 阅读(16) 评论(0) 推荐(0) 编辑
摘要: torch.utils.data.TensorDataset 这个类可以初始化数据集 例子: import torch from torch.utils import data # torch.utils.data.dataset 类的使用 x = torch.arange(12, dtype=to 阅读全文
posted @ 2023-01-06 10:26 __sunshine 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 1.读取文件 df = pd.read_csv() 2.基本属性 df.shape; df.head 3.选择文件 df[] df.loc[] df.iloc[:, 0:5] 阅读全文
posted @ 2022-12-31 23:06 __sunshine 阅读(32) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示