1. 函数指针(重要): 定义:它是一个指针,指向函数;即它是函数形式的指针变量。 格式: 返回值类型 (* 变量名)(参数1类型, 参数2类型……); 例子: #include<stdio.h> //定义函数function_1 void function_1(int , float) { pri ...
分类:
其他好文 时间:
2020-02-18 11:22:45
阅读次数:
67
获取Python解释器的版本信息 import sys print(sys.version) #输出 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)] 获取命令行参数 import sys pri ...
分类:
编程语言 时间:
2020-02-14 22:48:10
阅读次数:
88
第一类单继承的实现:from person import Personfrom student import Studentfrom worker import Workerper = Person("aa", 1, 2)stu = Student("tom", 18, 12345, 110)pri ...
分类:
编程语言 时间:
2020-02-13 16:59:01
阅读次数:
82
Access control is a fundamental element of the security infrastructure of any company. Every security officer wants to apply the principle of less pri ...
分类:
数据库 时间:
2020-02-12 16:37:04
阅读次数:
127
今天毕设的任务是获取用户行为,根据TF-IDF算法计算标签权重,并写入数据库; 代码: Action.java package entity; public class Action { private int user_id;//用户id private int tag_id;//标签id pri ...
分类:
其他好文 时间:
2020-02-10 18:19:07
阅读次数:
71
图像金字塔 高斯金字塔 高斯金字塔:向下采样方法(缩小) 高斯金字塔:向上采样方法(放大) img=cv2.imread("AM.png") cv_show(img,'img') print (img.shape) 效果: up=cv2.pyrUp(img) cv_show(up,'up') pri ...
分类:
其他好文 时间:
2020-02-10 18:14:56
阅读次数:
69
Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline of handing in the ho ...
分类:
其他好文 时间:
2020-02-09 20:41:02
阅读次数:
59
推荐阅读:https://www.cnblogs.com/bigb/p/11650707.html 计算机学习的一个好办法就是自己将代码跑一遍,了解代码的运作顺序和原理(主要弄懂 函数作用,传入参数,返回值) 见代码: class A(object): def __init__(self): pri ...
分类:
编程语言 时间:
2020-02-08 17:19:12
阅读次数:
64
import collections#创建一个队列queue = collections.deque()print(queue)#进队(存数据)queue.append("A")print(queue)queue.append("B")print(queue)queue.append("C")pri ...
分类:
编程语言 时间:
2020-02-08 12:09:53
阅读次数:
100
qt demo pro qtdemo.pri TEMPLATE = app QT_VER = $$[QT_VERSION] QT_PATH = $$[QT_INSTALL_PREFIX] #message(Qt version is $$QT_VER) #message(Qt install pre ...
分类:
其他好文 时间:
2020-02-07 18:31:15
阅读次数:
76