- 博客(12)
- 收藏
- 关注
原创 Django 数据库常用字段类型
数值型类型用法作用参数AutoField自增字段若不显示指定主键,django每次会新建一个自增字段并设置为主键BigAutoField类似AutoField存储数字为只能为 1到9223372036854775807BigIntegerField类似IntegerField-9223372036854775808 到 9223372036854775807BinaryField二进制字段BooleanField布尔型存true
2021-07-31 19:03:53
723
原创 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
207
原创 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
452
原创 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
133
翻译 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
813
翻译 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
359
翻译 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
390
翻译 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
348
原创 全排列模板(详细解析版)
全排列问题:从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
563
原创 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
802
原创 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
1263
原创 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
1297
5
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅