前言: 冒泡,选择:使用了普通双指针法 插入,快速,归并:使用了二分法,递归 冒泡排序 原理:不断比较相邻两个数得大小,把较大的数交换到靠后的位置 def bubbleSort(iList): '''冒泡排序 ''' if len(iList) <= 1: return iList for i in ...
分类:
编程语言 时间:
2021-07-16 17:32:50
阅读次数:
0
1 // 2 // Created by Administrator on 2021/7/15. 3 // 4 5 #ifndef C__TEST01_PERSON_H 6 #define C__TEST01_PERSON_H 7 8 //类模板 9 template<class T1, class ...
分类:
其他好文 时间:
2021-07-16 17:31:48
阅读次数:
0
1 #include <iostream> 2 #include <stdio.h> 3 #include <vector> 4 5 6 struct BoxInfo 7 { 8 int label; 9 float score; 10 }; 11 12 13 int bbox_init(std:: ...
分类:
编程语言 时间:
2021-07-16 17:31:29
阅读次数:
0
用malloc和free;类似与C++的new和delete 代码: #include <iostream> #include <string> using namespace std; int main(int argc, char* argv[]) { void* ptr = (void*)ma ...
分类:
编程语言 时间:
2021-07-15 18:57:44
阅读次数:
0
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>标题</title> </head> <body> <script> /* 自定义对象({}),可以看成是python中的字典,但是js中的自定义对象要比pyt ...
分类:
Web程序 时间:
2021-07-14 18:51:37
阅读次数:
0
<div class="form-group"> <label class="control-label col-xs-12 col-sm-2">{:__('Json')}:</label> <div class="col-xs-12 col-sm-8"> <dl class="fieldlist" ...
分类:
Web程序 时间:
2021-07-14 18:48:50
阅读次数:
0
磁盘不够大,备份文件每天都生成,大概半个月就得手工清理一次,基于此,花了点时间写了个简单文件清理工具 采用WinForm 4.6.1实现,页面上需要拖放一个TextBox 控件 1、配置文件: <?xml version="1.0" encoding="utf-8" ?> <configuratio ...
基础安装可参考 官方地址 但是安装MAUI的时候出现了错误,错误如下: 解决方法: 文件名称: Versions.props <Project> <!--Package versions--> <PropertyGroup> <MicrosoftDotnetSdkInternalPackageVer ...
分类:
其他好文 时间:
2021-07-14 18:46:24
阅读次数:
0
const 变量能被其他文件 extern 引用吗?为什么? 先来看一段代码: // 来源:公众号编程珠玑 // main.cc #include<stdio.h> // 引用外部定义的const_int变量 extern const int const_int; int main() { prin ...
分类:
其他好文 时间:
2021-07-13 17:45:44
阅读次数:
0
vue实现div高度可拖拽 这里有一个现成的demo,可以实现页面div的拖拽功能,但是和我想要的效果不是很一样,所以说后边有根据我的实际需求又重新修改了一下,先看一下现在的demo效果。 <template> <div id="eagleMapContainer" style="border: 1 ...
分类:
其他好文 时间:
2021-07-13 17:44:58
阅读次数:
0