第九课:动态类型 1、在Python中,有一类特殊的对象,是专门用来存储数据的,常见的有数字、字符串、数列、字典等。这些对象是存储在内存中的实体,我们并不能直接接触到它们,在程序中接触的是对象名,是指向这些对象的引用(reference)。 2、 1)对象和引用分离,是动态类型的核心,引用可以随时指 ...
分类:
编程语言 时间:
2016-08-18 19:35:45
阅读次数:
163
WaveProgressView的简介 1. 控件自定义属性及格式 * 圆形背景图片 name="backgroundDrawable" format="reference" * 圆形背景颜色 name="backgroundColor" format="color|reference" * 外圆环 ...
分类:
其他好文 时间:
2016-08-17 22:46:51
阅读次数:
157
一,train_val.prototxt 二,solver.prototxt 三,deploy.prototxt 参考一: 模型就用程序自带的caffenet模型,位置在 models/bvlc_reference_caffenet/文件夹下, 将需要的两个配置文件,复制到myfile文件夹内 修改 ...
分类:
其他好文 时间:
2016-08-17 11:49:21
阅读次数:
1832
C语言程序员的一项重要工作就是封装功能函数。
问题链接:UVA494 Kindergarten Counting Game。
题意简述:幼儿园数单词游戏。输入若干句话,数一下每句有几个单词输出。
问题分析:实现方法有多种。可以用C语言的字符串函数strtok()来实现,也可以用字符流来实现。
程序说明:用字符流实现时,封装了函数mygetchar()和mygetwords(),...
分类:
其他好文 时间:
2016-08-17 10:41:41
阅读次数:
149
题意:给一个 n,求在 n 的所有排列中,恰好有 k 个数a[i] > i 的个数。 析:很明显是DP,搞了好久才搞出来,觉得自己DP,实在是太low了,思路是这样的。 dp[i][j]表示 i 个排列,恰好有 j 个数,dp[i][j] = dp[i-1][j] * (j+1) + dp[i-1] ...
分类:
其他好文 时间:
2016-08-16 21:37:25
阅读次数:
167
偶尔会在编译时出现“The type or namespace name '****' could not be found (are you missing a using directive or an assembly reference”的错误,百度了许久,不禁黯然失色,沮丧之至,悲痛万分。 ...
分类:
其他好文 时间:
2016-08-16 13:21:43
阅读次数:
164
Reference Notepad++ 设置运行默认脚本程序Python?NotePad++ 编辑模式设置为Linux?NotePad++ 整段落缩进?NotePad++ Compare 插件;NotePad++ 列编辑模式?NotePad++ 返回上一步操作?NotePad++ 显示文件行号?No ...
分类:
其他好文 时间:
2016-08-15 10:17:10
阅读次数:
1661
Description There are n distinct points in the plane, given by their integer coordinates. Find the number of parallelograms whose vertices lie on thes ...
分类:
其他好文 时间:
2016-08-14 19:07:45
阅读次数:
174
题目链接:http://lightoj.com/volume_showproblem.php?problem=1058 ...
分类:
其他好文 时间:
2016-08-14 17:56:22
阅读次数:
260
Authors Rod Johnson , Juergen Hoeller , Keith Donald , Colin Sampaleanu , Rob Harrop , Thomas Risberg , Alef Arendsen , Darren Davison , Dmitriy Kopyl ...
分类:
编程语言 时间:
2016-08-14 11:43:13
阅读次数:
331