- 博客(7)
- 收藏
- 关注
转载 Python3 More on Lists.md
列表对象方法len(L)计算列表的长度。注意:列表第一个元素的下标是从 0 开始的,因此,最后一个元素的下标是 len(list) - 1。append(x)添加 1 个元素到列表的末尾。相当于 list[len(list): ] = [x]。>>> list = [0, 1, 2];>>> list.append(3);>>...
2015-11-12 20:45:00
104
转载 Python3 List.md
List, a list of comma-separated values (items) between square brackets. Lists might contain items of different types, but usually the items all have the same type.列表,中括号 中一列用 逗号 分隔的值。列表可以包含不同类型的...
2015-11-12 20:40:00
86
转载 Python3 String.md
' ' " " ''' ''' """ """ \ r + *' ' " ":表示字符串。在行尾添加 '' 表示换行接着写,不是字符串换行("\n")。''' ''' """ """: 表示跨多行的字符串。行尾换行符会自动添加到字符串中,如果不想换行可以在行尾加上\。# ''、"" 直接换行,会出现错误>>> a = 'hello File "&l...
2015-11-12 20:39:00
99
转载 Python3 Operation.md
+ - * / // % **Python 解释器可以作为一个简单的计算器:您可以在解释器里输入一个表达式,它将输出表达式的值。/: 在python 2.x中/除法就跟我们熟悉的大多数语言,比如Java啊C啊差不多,整数相除的结果是一个整数,把小数部分完全忽略掉,浮点数除法会保留小数点的部分得到一个浮点数的结果。在python 3.x中/除法不再这么做了,对于整数之间的相除,结...
2015-11-12 20:31:00
148
转载 Get wechat access_token
access_token是公众号的全局唯一票据,公众号调用各接口时都需使用access_token。开发者需要进行妥善保存。access_token的存储至少要保留512个字符空间。access_token的有效期目前为2个小时(7200s),需定时刷新,重复获取将导致上次获取的access_token失效。公众平台的API调用所需的access_token的使用及生成方式...
2015-10-30 16:31:00
209
转载 Share Buttons
分享的制作一般都用 <a> 标签,href 如下: 一般的分享链接只需要两个参数就行,一个是页面的标题(title),另一个是页面的链接(url),至于腾讯微博和新浪微博都需要一个appkey.腾讯微博: "http://v.t.qq.com/share/share.php?title={title}&url{url}&...
2015-10-13 17:39:00
103
转载 PhpStorm generate CSS by LESS
Less is a CSS pre-processor, meaning that it extends the CSS language, adding features that allow variables, mixins, functions and many other techniques that allow you to make CSS that is...
2015-10-05 21:15:00
147
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人