码迷,mamicode.com
首页 >  
搜索关键字:other    ( 5856个结果)
Python中类方法重载---大部分
重载方法格式: def __xxx__(self,other): ... 注:重载方法格式 运算符运算符重载: 作用: 让自定义的类创建的对象像内建对象一样进项运算符操作 算数运算符: __add__ 加法 + __sub__ 减法 - __mul__ 乘法 * __truedif__ 除法 / _ ...
分类:编程语言   时间:2017-12-09 15:57:09    阅读次数:119
Tutorial 1: Serialization
转载自:http://www.django-rest-framework.org/tutorial/1-serialization/#tutorial-1-serialization Tutorial 1: Serialization Introduction This tutorial will ...
分类:其他好文   时间:2017-12-09 14:11:00    阅读次数:242
Tutorial 4: Authentication & Permissions
转载自:http://www.django-rest-framework.org/tutorial/4-authentication-and-permissions/ Tutorial 4: Authentication & Permissions Currently our API doesn't ...
分类:其他好文   时间:2017-12-09 14:05:59    阅读次数:210
鸡兔同笼
描述已知鸡和兔的总数量为n,总腿数为m。输入n和m,依次输出鸡和兔的数目,如果无解,则输出“No answer”(不要引号)。 ...
分类:其他好文   时间:2017-12-09 00:48:55    阅读次数:215
POJ2096Collecting Bugs(数学期望,概率DP)
问题: Ivan is fond of collecting. Unlike other people who collect post stamps, coins or other material stuff, he collects software bugs. When Ivan gets ...
分类:其他好文   时间:2017-12-08 13:51:53    阅读次数:212
cent7.0 mysql 修改端口
如何查看mysql 默认端口号和修改端口号 2015-03-19 17:42:18 1. 登录mysql [root@test /]# mysql -u root -p Enter password: 2. 使用命令show global variables like 'port';查看端口号 my ...
分类:数据库   时间:2017-12-08 10:28:33    阅读次数:217
JAVA数据结构--优先队列(堆实现)
优先队列(堆)的定义 堆(英语:Heap)是计算机科学中一类特殊的数据结构的统称。堆通常是一个可以被看做一棵树的数组对象。在队列中,调度程序反复提取队列中第一个作业并运行,因为实际情况中某些时间较短的任务将等待很长时间才能结束,或者某些不短小,但具有重要性的作业,同样应当具有优先权。堆即为解决此类问 ...
分类:编程语言   时间:2017-12-07 22:37:33    阅读次数:274
HDU 1518 Square (DFS+剪枝)
Given a set of sticks of various lengths, is it possible to join them end to end to form a square? Input The first line of input contains N, the numbe ...
分类:其他好文   时间:2017-12-07 18:53:47    阅读次数:141
total number of hops
I thought of it as follows, let S(n) be the # of combinationsto go n stepsa) to go n+3 is the S(n+2) + the hop with distance 1 b) to go n+3 is the S(n ...
分类:其他好文   时间:2017-12-07 15:19:56    阅读次数:181
C#中父窗口和子窗口之间控件互操作实例
本文实例讲述了C#中父窗口和子窗口之间控件互操作的方法。分享给大家供大家参考。具体分析如下: 很多人都苦恼于如何在子窗体中操作主窗体上的控件,或者在主窗体中操作子窗体上的控件。相比较而言,后面稍微简单一些,只要在主窗体中创建子窗体的时候,保留所创建子窗体对象即可。 下面重点介绍前一种,目前常见的有两 ...
分类:Windows程序   时间:2017-12-07 00:22:30    阅读次数:262
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!