自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

原创 Django 数据库常用字段类型

数值型类型用法作用参数AutoField自增字段若不显示指定主键,django每次会新建一个自增字段并设置为主键BigAutoField类似AutoField存储数字为只能为 1到9223372036854775807BigIntegerField类似IntegerField-9223372036854775808 到 9223372036854775807BinaryField二进制字段BooleanField布尔型存true

2021-07-31 19:03:53 625

原创 Django (python web)

Django配置mysql安装mysqlclient# 安装命令sudo pip3 install mysqlclient安装前确认ubuntu是否已安装 python3-dev 和 default-libmysqlclient-dev# 安装命令sudo apt-get install python3-dev default libmysqlclient-dev 创建数据库进入 mysql 执行creat database 数据库名 default charset

2021-07-31 15:54:19 165

原创 Linux学习笔记

Linux学习笔记Linux系统相关Linux多进程开发Linux多线程开发常用头文件 pthread.h#include<pthread.h>回收子进程pthread_join int pthread_join(pthread_t thread, void **retval);功能:和一个已经终止的线程进行连接回收子线程的资源这个函数是阻塞函数,调用一次只能回收一个子线程一般在主线程中使用参数thread:需要回收的子线程的IDretval: 接收子线程退出

2021-07-17 00:52:43 343

原创 2021-02-26

全排列问题#include<stdio.h>//sum(n)=sum(n-1)+nint n;int vis[100];int a[100];void qpl(int k){ if(k==n+1){ for(int i=1;i<=n;i++){ printf("%d",a[i]); } printf("\n"); return ; } for(int i=1;i<=n;i++){ if(vis[i]==1)continue; vis[

2021-02-26 11:35:16 86

翻译 week04-data-representation-01-Matplotlib

Foundation Data SciencesWeek 04: Data representation I: MatplotlibLearning outcomes:In this lab you will learn different plotting methods using Matplotlib. By the end of the lab you should be able to:understand how Matplotlib works under the hood,dra

2020-10-27 16:24:02 622

翻译 week03-Data-wrangling-solution

Foundation Data SciencesWeek 03: Pandas - Data WranglingLearning outcomes:In this lab you will learn to prepare your data for future use. By the end of the lab you should be able to:get an overview of your data,clean data, andcombine data from multi

2020-10-27 16:19:21 260

翻译 week03-Data-wrangling

Foundation Data SciencesWeek 03: Pandas - Data WranglingLearning outcomes:In this lab you will learn to prepare your data for future use. By the end of the lab you should be able to:get an overview of your data,clean data, andcombine data from multi

2020-10-27 16:18:17 295

翻译 week02-Introduction

Foundation Data SciencesWeek 02: Introduction to Jupyter Notebooks and PandasLearning outcomes:In this lab you will learn the very basics of the python library pandas, which is used for data management. By the end of the lab you should be able to:use

2020-10-27 14:41:25 269

原创 全排列模板(详细解析版)

全排列问题:从1~n个数中选取n个组成一个全排列例: 1~3组成的全排列有:123 132 213 231 312 321代码:#include<bits/stdc++.h>using namespace std;int a[111],n;//全局变量 //a:记录选过的数 n:数的个数 bool vis[111];//标记某个数是否用过 void Print();//核心递归函数void qpl(int k/*参数*/){ //k:层数(当前应该选择第k个数)

2020-10-17 16:34:28 487

原创 windows系统下VMware运行Noilinux方法(该方法成功率极高)

概述此教程为在Windows系统下用虚拟机软件VMware配置NOI linuxNOIP竞赛中部分赛区使用的是 wimdows系统 + linux虚拟机,部分赛区只提供 NOI linux 操作系统。(NOI linux是基于Ubuntu14的操作系统)该教程为直接导入的方法,较直接安装会简单一些,成功率也高一些。前期准备需先下载好Noilinux和VMware:点此下载Noilinux 镜像点此下载VMware具体操作1.先下载好上面两个文件(上面文件将近2G,下载会需要一段时间,稍安勿

2020-09-14 16:11:35 640

原创 C++ Qt笔记(较详细需要配合目录查看)

Qt笔记设置窗口相关重置窗口大小 resize(int,int)设置固定窗口大小 setFixedSize(int,int)设置窗口标题 setWindowTitle按钮 QPshuButton创建 QPushButton btn=new QPushButton;设置当前窗口为父亲 setParent(this)重置按钮大小 resize(int ,int)设置按钮位置 move...

2020-06-18 14:01:54 1146

原创 VMware配置NOI linux

此教程为在Windows系统下用虚拟机软件VMware配置NOI linuxNOIP竞赛中部分赛区使用的是 wimdows系统 + linux虚拟机,部分赛区只提供 NOI linux 操作系统。(NOI linux是基于Ubuntu14的操作系统)VMware虚拟机百度网盘链接 提取码:oki3(该软件仅供学习交流使用,不可用于其他用途)NOI linux系统下载1.下载上面链接中...

2020-04-04 08:32:10 982 5

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除