01 2020 档案

摘要:»1.8编程基础之多维数组(25题) 上次编辑的时候忘记保存了,前面几题就算了趴懒得 08:矩阵加法 #include<iostream> #define MAX 105 using namespace std; int table[MAX][MAX]; int main() { int n,m; 阅读全文
posted @ 2020-01-31 19:32 东坡肉肉君 阅读(1591) 评论(0) 推荐(0) 编辑
摘要:Day02 Model 在企业开发中,我们通常都是从数据开始开发的 ORM 对象关系映射 可以理解为翻译机 核心思想,解耦合 将业务逻辑和SQL进行了解耦 数据库中数据类型 字符串 数字 日期时间 模型过滤 filter exclude 连续使用 链式调用 Person.objects.filter 阅读全文
posted @ 2020-01-31 14:02 东坡肉肉君 阅读(128) 评论(0) 推荐(0) 编辑
摘要:setting.py介绍: 设置允许访问的主机: ALLOWED_HOSTS = ['*']#*代表所有 设置页面的中英文切换和时区 # LANGUAGE_CODE = 'en-us' LANGUAGE_CODE = 'zh-hans' # TIME_ZONE = 'UTC' TIME_ZONE = 阅读全文
posted @ 2020-01-30 22:57 东坡肉肉君 阅读(91) 评论(0) 推荐(0) 编辑
摘要:1.2编程基础之变量定义、赋值及转换(10题) 01:整型数据类型存储空间大小 #include<iostream> using namespace std; int main() { cout<<sizeof(int)<<" "<<sizeof(short); return 0; } 02:浮点型 阅读全文
posted @ 2020-01-27 13:27 东坡肉肉君 阅读(370) 评论(0) 推荐(0) 编辑
摘要:1.3编程基础之算术表达式与顺序执行(20题) 01:A+B问题 #include<iostream> #include<string> using namespace std; int main() { int a,b; cin>>a>>b; cout<<a+b; return 0; } 02:计 阅读全文
posted @ 2020-01-27 13:26 东坡肉肉君 阅读(690) 评论(0) 推荐(0) 编辑
摘要:1.4编程基础之逻辑表达式与条件分支(21题) 01:判断数正负 #include<iostream> #include<cmath> using namespace std; int main() { int n; cin>>n; if(n>0) { cout<<"positive"<<endl; 阅读全文
posted @ 2020-01-27 13:25 东坡肉肉君 阅读(877) 评论(0) 推荐(0) 编辑
摘要:1.5编程基础之循环控制(45题) 01:求平均年龄 #include<iostream> using namespace std; int main() { int n; float sum=0; cin>>n; for(int i=0;i<n;++i) { int temp; cin>>temp 阅读全文
posted @ 2020-01-27 13:24 东坡肉肉君 阅读(5485) 评论(1) 推荐(0) 编辑
摘要:»1.7编程基础之字符串(35题) 01:统计数字字符个数 #include<iostream> #include<string> using namespace std; int main() { string a; getline(cin,a); int count=0; for(int i=0 阅读全文
posted @ 2020-01-27 13:21 东坡肉肉君 阅读(3484) 评论(0) 推荐(0) 编辑
摘要:»1.9编程基础之顺序查找(15题) 01:查找特定的值 #include<iostream> using namespace std; int main() { int n; cin>>n; int *p=new int[n](); for(int i=0;i<n;++i) { cin>>p[i] 阅读全文
posted @ 2020-01-27 13:19 东坡肉肉君 阅读(1145) 评论(0) 推荐(0) 编辑
摘要:»1.10编程基础之简单排序(10题) 01:谁考了第k名 #include<iostream> #include<string> #include<algorithm> #define MAX 200 using namespace std; struct S { string id; doubl 阅读全文
posted @ 2020-01-27 13:18 东坡肉肉君 阅读(1343) 评论(0) 推荐(0) 编辑
摘要:字符串: 使用方法修改字符串的大小写: name = 'ada lovalace' print("首字母大写:",name.title()) print("全大写:",name.upper()) print("全小写:",name.lower()) 删除空白: name = ' ada lovala 阅读全文
posted @ 2020-01-24 12:10 东坡肉肉君 阅读(368) 评论(0) 推荐(0) 编辑
摘要:Python3 os.chown() 方法 概述 os.chown() 方法用于更改文件所有者,如果不修改可以设置为 -1, 你需要超级用户权限来执行权限修改操作。 只支持在 Unix 下使用。 语法 chown()方法语法格式如下: os.chown(path, uid, gid); 参数 pat 阅读全文
posted @ 2020-01-24 00:07 东坡肉肉君 阅读(149) 评论(0) 推荐(0) 编辑
摘要:default.php index.php view.html.php helper.php controller.php frontend.php backend.php colorConfig.ini.php config.php router.php view.php search.php u 阅读全文
posted @ 2020-01-22 14:46 东坡肉肉君 阅读(522) 评论(0) 推荐(0) 编辑
摘要:反转字符串:algorithm中的reverse函数 #include <iostream> #include <string> #include <algorithm> using namespace std; int main() { string s= "hello"; reverse(s.b 阅读全文
posted @ 2020-01-21 16:25 东坡肉肉君 阅读(185) 评论(0) 推荐(0) 编辑
摘要:在kali渗透测试这本书上的蜂猴,是通过官网下的,然后每一次使用perl语言运行,奈何我找遍全网都是用pip安装,不知道是不是蜂猴现在改用Python版本了,这里先坑一下 安装: pip install slowloris 使用: optional arguments: -h, --help 显示帮 阅读全文
posted @ 2020-01-20 16:16 东坡肉肉君 阅读(1725) 评论(0) 推荐(0) 编辑
摘要:实验环境: kali2.0 + wind7虚拟机环境,都是net连接 流程: 1.setoolkit 启动社会工程工具集 2.选择社会工程学,编号为1 3.选择PowerShell攻击,编号为9 9) Powershell Attack Vectors 4.选择字母攻击 1) Powershell 阅读全文
posted @ 2020-01-18 16:31 东坡肉肉君 阅读(248) 评论(0) 推荐(0) 编辑
摘要:又回来了,先总结一下前两天干什么去了: 装了一下官方版的kali2.0和一个完整版的kali2.0,然后更新了一下我的老版本的kali内核。为什么呢?还不是为了安装W3af,太难了,装了3天都没装上,本来已经放弃了就打算直接用console界面,谁知道一start它又抱了一堆错,真的要吐血了。W3A 阅读全文
posted @ 2020-01-17 16:46 东坡肉肉君 阅读(2879) 评论(0) 推荐(1) 编辑
摘要:open-vm-tools——装了这个就不用装vmware tools了 apt-get install open-vm-tools-desktop fuse 更新时区: sudo dpkg-reconfigure tzdata apt-get install 时出现: E: 无法获得锁 /var/ 阅读全文
posted @ 2020-01-15 20:20 东坡肉肉君 阅读(462) 评论(0) 推荐(0) 编辑
摘要:介绍——命令模式&图形模式: start :开始扫描 plugins:选择本次扫描要用那些插件 w3af/plugins>>> help #在每一选项下都可以help出子选项 w3af/plugins>>> list audit #列出audit类型的插件 w3af/plugins>>> audit 阅读全文
posted @ 2020-01-14 21:23 东坡肉肉君 阅读(1061) 评论(0) 推荐(0) 编辑
摘要:1.1编程基础之输入输出(10题) Hello, World! #include<iostream> using namespace std; int main() { cout<<"Hello, World!"<<endl; return 0; } 输出第二个整数 #include<iostrea 阅读全文
posted @ 2020-01-13 12:07 东坡肉肉君 阅读(461) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示