由于LINQ查询返回的集合中匿名类型的属性都是只读的,如果需要为匿名属性赋值,只能通过初始化设定项来进行。初始化设定项还能为属性使用表达式。 1 class Program 2 { 3 static void Main(string[] args) 4 { 5 List<Person> person ...
If you are getting this in gdb on macOS while trying to run a program: Unable to find Mach task port for process-id 57573: (os/kern) failure (0x5). (p ...
分类:
其他好文 时间:
2020-06-21 15:36:08
阅读次数:
62
首先去Nuget中安装Log4Net包 安装:log4net 安装:Microsoft.Extensions.Logging.Console 安装:Microsoft.Extensions.Logging.Log4Net.AspNetCore 方式一 Program.cs文件 using Micro ...
分类:
Web程序 时间:
2020-06-20 21:29:26
阅读次数:
105
代码: 结果: PS E:\30.Study\30.自动化测试\99.零基础入门 Python Web 自动化测试\10.seleniumCodePractice> & "C:/Program Files/Python38/python.exe" "e:/30.Study/30.自动化测试/99.零 ...
分类:
编程语言 时间:
2020-06-20 11:09:48
阅读次数:
76
思路 暴力解决 注意事项 数字转字符,字符转数字 code=10的时候,是'X' #include<bits/stdc++.h> using namespace std; /* run this program using the console pauser or add your own get ...
分类:
其他好文 时间:
2020-06-19 22:57:24
阅读次数:
58
思路 用数组下标作为数字,数组元素记录次数 注意事项 声明数组的时候,如果用 int index[10000]; 会出现不为0的随机数 #include<bits/stdc++.h> using namespace std; /* run this program using the console ...
分类:
其他好文 时间:
2020-06-19 20:47:36
阅读次数:
52
手机抓包,不想走内网本机的网关。理论上模拟器和本机是连接的,不需要通过网关吧 0X01 mumu模拟器 1) 定IP 找到mumu的adb --> adb_server.exe C:\Program Files (x86)\MuMu\emulator\nemu\vmonitor\bin\adb_se ...
分类:
移动开发 时间:
2020-06-19 15:49:08
阅读次数:
62
官方文档 A Python program is constructed from code blocks. A block is a piece of Python program text that is executed as a unit. The following are blocks: ...
分类:
编程语言 时间:
2020-06-18 17:53:59
阅读次数:
63
直接上脚本吧。 # -*- coding: utf-8 -*- ''' Program:邮件伪造 Function:伪造邮件发送工具 ''' #导入两个库,用来发送邮件,multipart用来构造邮件,带附件的 import smtplib import email.mime.multipart i ...
分类:
其他好文 时间:
2020-06-18 16:05:22
阅读次数:
68
1、进入jmeter 应用所在路径 eg: cd D:\Program Files\apache-jmeter-5.2\bin 2、输入运行命令:jmeter -n -t [jmx脚本路径] -l [测试输出文件路径] eg: jmeter -n -t "D:\P1 API\nuc\nuc环境压测. ...
分类:
其他好文 时间:
2020-06-18 10:43:54
阅读次数:
74