书上说元组就是被包含在小括号里面,不能被修改。列表是包含在中括号里面,可以被修改。
列表中可以嵌套列表,元组中可以嵌套元组,一般没人混用,这点测试无误:
>>> aa[0]
(12, 34)
>>> aa[0]=(1,2)
Traceback (most recent call last):
File "", line 1, in
TypeError: 'tuple' object do...
分类:
编程语言 时间:
2015-08-14 21:33:11
阅读次数:
211
三种方法 (只改其一可能无效,最好都试试)1. 修改exlipse安装目录下\configuration\.settings\org.eclipse.ui.ide.prefs文件,修改RECENT_WORKSPACES这个keyRECENT_WORKSPACES=C\:\\developworks\...
分类:
系统相关 时间:
2015-08-13 20:01:37
阅读次数:
495
Traceback (most recent call last): File "F:\adt-bundle-windows-x86_64-20140702\eclipse\workspace1\XueChe\src\xueche2\0\xueche.py", line 19, in dr...
分类:
编程语言 时间:
2015-08-13 17:12:32
阅读次数:
1926
在新装的centos系统中,用源码安装supervisor提示如下:
[root@1e supervisor-3.0]# python setup.py install
Traceback (most recent call last):
File "setup.py", line 31, in
from setuptools import setup, find_packages...
分类:
编程语言 时间:
2015-08-12 19:43:32
阅读次数:
184
/*Author: Jiangong SUN*/As I've manipulated a lot of data using SQL data reader in recent project. And people says it's not good to access the data by...
分类:
数据库 时间:
2015-08-11 13:57:03
阅读次数:
210
Avoid The Lakes
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 7034
Accepted: 3740
点击打开链接
Description
Farmer John's farm was flooded in the most recent...
分类:
其他好文 时间:
2015-08-08 09:13:04
阅读次数:
162
什么是异常python用异常对象(exceptionobject)来表示异常情况。遇到错误后,会引发异常。如果异常对象并未被处理或捕捉,程序就会用所谓的回溯(Traceback,一种错误信息)终止执行>>> 1/0Traceback (most recent call last): File ""....
分类:
编程语言 时间:
2015-08-06 16:44:43
阅读次数:
392
Avoid The LakesTime Limit:1000MSMemory Limit:65536KTotal Submissions:7023Accepted:3735DescriptionFarmer John's farm was flooded in the most recent sto...
分类:
其他好文 时间:
2015-08-05 20:10:36
阅读次数:
134
$ python thread.py starting at: 2015-08-05 00:24:24Traceback (most recent call last): File "thread.py", line 28, in main() File "thread.py", line 16,....
分类:
其他好文 时间:
2015-08-05 06:25:57
阅读次数:
153
Avoid The LakesDescriptionFarmer John's farm was flooded in the most recent storm, a fact only aggravated by the information that his cows are deathly...
分类:
其他好文 时间:
2015-08-05 00:58:42
阅读次数:
113