1、字典 创建字典,alien_0={'color':'green','points':5}其中由一个又一个的“键-值”对组成。 访问键-值对相应的值,print(alien_0['color']),可以得到green 添加键-值对,alien_0["x_position"]=100,这里前提是al ...
分类:
编程语言 时间:
2017-05-05 21:49:42
阅读次数:
215
PASCAL . Hexagrammum Mysticum . (六角迷魂图) 。 的深度探索 。 英中对比。英文蓝色,译文黑色,译者补充说明用紫红色 (已校完,但尚未定稿,想再整理并补充内容) keyword:hexagon(六角形、六边形), 6点15边, 45对边交点(opposite edg ...
分类:
其他好文 时间:
2017-05-05 12:48:35
阅读次数:
185
F - Many Moves Time limit : 2sec / Memory limit : 256MB Score : 900 points Problem Statement There are N squares in a row. The squares are numbered 1, ...
分类:
其他好文 时间:
2017-05-03 22:52:20
阅读次数:
326
在编译Cocos2dx 3.6版本号时。发现编译错误: 定位代码行: debugForNormalSprite->drawPoints(positions, 4, 8, Color4F{0.0,1.0,1.0,1.0}); 改动例如以下: debugForNormalSprite->drawPoin ...
分类:
其他好文 时间:
2017-05-03 13:14:03
阅读次数:
123
必做: [*] warmUpExercise.m - Simple example function in Octave/MATLAB[*] plotData.m - Function to display the dataset[*] computeCost.m - Function to com ...
分类:
系统相关 时间:
2017-04-29 09:53:43
阅读次数:
302
ACM (ACMers' Chatting Messenger) is a famous instant messaging software developed by Marjar Technology Company. To attract more users, Edward, the bos ...
分类:
其他好文 时间:
2017-04-26 13:02:58
阅读次数:
198
Astronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian coordinates. Let the level of a star ...
分类:
编程语言 时间:
2017-04-24 19:53:50
阅读次数:
205
本算法进一步深入熟悉平面波展开法 结果如下:与文献molding the flow of light 相一致 ps:有多余线,需要进一步求证 主程序如下: 其中的获取展开系数的getGAndf_1D函数如下 ...
分类:
其他好文 时间:
2017-04-23 21:13:45
阅读次数:
381
VLATTICE - Visible Lattice Points no tags no tags Consider a N*N*N lattice. One corner is at (0,0,0) and the opposite one is at (N,N,N). How many latt ...
分类:
其他好文 时间:
2017-04-22 19:45:24
阅读次数:
206
Given two sequences of letters A and B, find if B is a subsequence of A in thesense that one can delete some letters from A and obtain the sequence B. ...
分类:
其他好文 时间:
2017-04-22 15:51:30
阅读次数:
269