CSS书写顺序 1.位置属性(position, top, right, z-index, display, float等) 2.大小(width, height, padding, margin) 3.文字系列(font, line-height, letter-spacing, color- t ...
分类:
Web程序 时间:
2018-06-04 23:28:25
阅读次数:
329
题目描述 给定一个仅包含数字 2-9 的字符串,返回所有它能表示的字母组合。 给出数字到字母的映射如下(与电话按键相同)。注意 1 不对应任何字母。 示例: 输入:"23" 输出:["ad", "ae", "af", "bd", "be", "bf", "cd", "ce", "cf"]. 说明: ...
分类:
其他好文 时间:
2018-06-04 22:26:20
阅读次数:
184
question: Suppose that the sequence P R I O * R * * I * T * Y * * * Q U E * * * U * E (where a letter means insert and an asterisk means remove the ma ...
分类:
其他好文 时间:
2018-06-04 21:30:46
阅读次数:
164
Problem description A string is a palindrome if it reads the same from the left to the right and from the right to the left. For example, the strings ...
分类:
其他好文 时间:
2018-06-03 14:31:13
阅读次数:
157
ASCII 码表的对应值,知道 ord('a') 能将字符 'a' 转化为 ASCII 码表上对应的数值,就可以了。其中,数字 0-9 对应的码值为 48-57,大写字母 A-Z 对应 65-90,小写字母 a-z 对应 97-122。 判断的时候应注意:'2' in range(3) 的结果是 F ...
分类:
编程语言 时间:
2018-06-02 14:56:54
阅读次数:
662
CocosCreator零基础制作游戏《极限跳跃》五、制作游戏主场景背景滚动 刚刚我们实现了玩家的一些功能,测试了下发现我们的玩家跳跃几次后,就会超出屏幕,这样体验很差,那下面我们来实现场景背景的滚动作为参照物来实现玩家移动。也就是说玩家只需要小范围的移动就行了,剩下的交给背景的移动来给用户带来玩家 ...
分类:
其他好文 时间:
2018-06-01 19:09:18
阅读次数:
208
CocosCreator零基础制作游戏《极限跳跃》三、制作游戏主场景 刚刚我们制作了游戏的开始场景,现在我们来制作游戏的主场景。还是同样的方法,新建一个名为MainScene的场景,双击打开,修改场景的大小为480x800。 1、首先贴入游戏背景,在此我们使用了2张背景图,只需要把背景拖进层级管理器 ...
分类:
其他好文 时间:
2018-06-01 19:02:47
阅读次数:
163
fr = open('letter.txt',mode='r',encoding='utf-8') plaincode = fr.read() print('明文:' + plaincode) print('密文:',end='') for c in plaincode: print(chr(ord... ...
分类:
其他好文 时间:
2018-05-30 22:51:04
阅读次数:
178
fr = open('letter.txt', mode='r', encoding='utf-8') plaincode = fr.read() print('明文:'+ plaincode) print('密文:',end='') for c in plaincode: print(chr(or... ...
分类:
其他好文 时间:
2018-05-30 22:46:55
阅读次数:
207
fr = open('letter.txt.txt', mode='r', encoding='utf-8') plaincode = fr.read() print('明文:' + plaincode) print('密文:', end='') for c in plaincode: print(... ...
分类:
其他好文 时间:
2018-05-30 22:36:43
阅读次数:
216