摘要: L2范数 向量元素平方和的平方根 L1范数 向量元素绝对值之和 阅读全文
posted @ 2022-01-23 16:56 南理工学渣 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 查看模型每一层的输出情况 以基础的LeNet为例 import torch from torch import nn class Reshape(torch.nn.Module): def forward(self, x): return x.view(-1, 1, 28, 28) net = to 阅读全文
posted @ 2022-01-22 15:54 南理工学渣 阅读(38) 评论(0) 推荐(0) 编辑
摘要: python程序 python程序使用pyinstaller这个库,然后转到程序所在的同级目录,使用命令pyinstaller -F name.py。 打包完成后在目录dist查看 Android程序 阅读全文
posted @ 2021-07-24 15:10 南理工学渣 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 工具 python、java python代码 1 # -*- coding: UTF-8 -*- 2 3 # server.py 4 import socket 5 6 IP_address = "192.168.1.104" 7 port = 51706 8 s = socket.socket( 阅读全文
posted @ 2021-04-27 17:56 南理工学渣 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 工具 kali linux下的arpspoof,VMware以及USB式的无线网卡 遇见问题 1、kali2020未装arpsproof。 首先执行sudo apt-get update,然后apt-get install arpsproof 2、无法ping到受害主机 3、注意使用管理员权限进行操 阅读全文
posted @ 2021-04-27 12:34 南理工学渣 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 使用的工具 就是使用了python语言,利用里面的os库和smptlib。 代码 1 import os 2 import smtplib 3 from email.mime.text import MIMEText 4 5 6 def get_pwd(): 7 wifi = "\"404 NOT 阅读全文
posted @ 2021-04-23 22:59 南理工学渣 阅读(651) 评论(0) 推荐(0) 编辑
摘要: 参考文章 1 #include<bits/stdc++.h> 2 using namespace std; 3 4 int X[] = {0, -1, 1, 0, 0}; 5 int Y[] = {0, 0, 0, -1, 1}; 6 7 bool vis[10][10]; 8 int res = 阅读全文
posted @ 2021-04-17 20:36 南理工学渣 阅读(24) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> using namespace std; struct node{ string str;//当前的状态 int pos;//当前0的位置 int step;//所走的步数 node(string str,int pos,int step):str(s 阅读全文
posted @ 2021-04-16 19:51 南理工学渣 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 注意事项 注意更换状态 #include<bits/stdc++.h> using namespace std; char maps[11][11]; int vis[11][11]; int ans=0; void input() { ifstream infile; infile.open("i 阅读全文
posted @ 2021-04-16 12:06 南理工学渣 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 吐槽 好难啊!!!! #include<bits/stdc++.h> using namespace std; char maps[1001][1001]; int n; bool flag=false;//标记这个岛是否被完全淹没 int vis[1001][1001]={0};//0表示没搜过 阅读全文
posted @ 2021-04-15 22:58 南理工学渣 阅读(21) 评论(0) 推荐(0) 编辑