-
大小: 16.53MB文件类型: .rar金币: 1下载: 0 次发布日期: 2023-07-20
- 语言: 其他
- 标签: Sublimetext
资源简介
语法高亮
代码片段和文件信息
# Copyright (c) 2009 Raymond Hettinger
#
# Permission is hereby granted free of charge to any person
# obtaining a copy of this software and associated documentation files
# (the “Software“) to deal in the Software without restriction
# including without limitation the rights to use copy modify merge
# publish distribute sublicense and/or sell copies of the Software
# and to permit persons to whom the Software is furnished to do so
# subject to the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED “AS IS“ WITHOUT WARRANTY OF ANY KIND
# EXPRESS OR IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES
# OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
# HOLDERS BE LIABLE FOR ANY CLAIM DAMAGES OR OTHER LIABILITY
# WHETHER IN AN ACTION OF CONTRACT TORT OR OTHERWISE ARISING
# FROM OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
from sys import version_info
PY2 = version_info[0] == 2
PY3 = version_info[0] == 3
if PY2:
from UserDict import DictMixin
else:
from collections import MutableMapping as DictMixin
class OrderedDict(dict DictMixin):
def __init__(self *args **kwds):
if len(args) > 1:
raise TypeError(‘expected at most 1 arguments got %d‘ % len(args))
try:
self.__end
except AttributeError:
self.clear()
self.update(*args **kwds)
def clear(self):
self.__end = end = []
end += [None end end] # sentinel node for doubly linked list
self.__map = {} # key --> [key prev next]
dict.clear(self)
def __setitem__(self key value):
if key not in self:
end = self.__end
curr = end[1]
curr[2] = end[1] = self.__map[key] = [key curr end]
dict.__setitem__(self key value)
def __delitem__(self key):
dict.__delitem__(self key)
key prev next = self.__map.pop(key)
prev[2] = next
next[1] = prev
def __iter__(self):
end = self.__end
curr = end[2]
while curr is not end:
yield curr[0]
curr = curr[2]
def __reversed__(self):
end = self.__end
curr = end[1]
while curr is not end:
yield curr[0]
curr = curr[1]
def popitem(self last=True):
if not self:
raise KeyError(‘dictionary is empty‘)
if last:
key = reversed(self).next()
else:
key = iter(self).next()
value = self.pop(key)
return key value
def __reduce__(self):
items = [[k self[k]] for k in self
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 42 2015-06-13 23:07 SublimeCodeIntel\.gitignore
文件 0 2015-06-13 23:07 SublimeCodeIntel\.no-sublime-package
文件 205936 2015-06-13 23:07 SublimeCodeIntel\arch\_linux_libcpp6_x86_64_py26\cElementTree.so
文件 205936 2015-06-13 23:07 SublimeCodeIntel\arch\_linux_libcpp6_x86_64_py26\ciElementTree.so
文件 19272 2015-06-13 23:07 SublimeCodeIntel\arch\_linux_libcpp6_x86_64_py26\sgmlop.so
文件 2130848 2015-06-13 23:07 SublimeCodeIntel\arch\_linux_libcpp6_x86_64_py26\_SilverCity.so
文件 0 2015-06-13 23:07 SublimeCodeIntel\arch\_linux_libcpp6_x86_64_py26\__init__.py
文件 19400 2015-06-13 23:07 SublimeCodeIntel\arch\_linux_libcpp6_x86_64_py33\sgmlop.so
文件 223032 2015-06-13 23:07 SublimeCodeIntel\arch\_linux_libcpp6_x86_64_py33\_ielementtree.so
文件 2085920 2015-06-13 23:07 SublimeCodeIntel\arch\_linux_libcpp6_x86_64_py33\_SilverCity.so
文件 0 2015-06-13 23:07 SublimeCodeIntel\arch\_linux_libcpp6_x86_64_py33\__init__.py
文件 195580 2015-06-13 23:07 SublimeCodeIntel\arch\_linux_libcpp6_x86_py26\cElementTree.so
文件 195580 2015-06-13 23:07 SublimeCodeIntel\arch\_linux_libcpp6_x86_py26\ciElementTree.so
文件 18208 2015-06-13 23:07 SublimeCodeIntel\arch\_linux_libcpp6_x86_py26\sgmlop.so
文件 2238916 2015-06-13 23:07 SublimeCodeIntel\arch\_linux_libcpp6_x86_py26\_SilverCity.so
文件 0 2015-06-13 23:07 SublimeCodeIntel\arch\_linux_libcpp6_x86_py26\__init__.py
文件 18304 2015-06-13 23:07 SublimeCodeIntel\arch\_linux_libcpp6_x86_py33\sgmlop.so
文件 208168 2015-06-13 23:07 SublimeCodeIntel\arch\_linux_libcpp6_x86_py33\_ielementtree.so
文件 2210308 2015-06-13 23:07 SublimeCodeIntel\arch\_linux_libcpp6_x86_py33\_SilverCity.so
文件 0 2015-06-13 23:07 SublimeCodeIntel\arch\_linux_libcpp6_x86_py33\__init__.py
文件 317244 2015-06-13 23:07 SublimeCodeIntel\arch\_macosx_universal_py26\cElementTree.so
文件 317196 2015-06-13 23:07 SublimeCodeIntel\arch\_macosx_universal_py26\ciElementTree.so
文件 43928 2015-06-13 23:07 SublimeCodeIntel\arch\_macosx_universal_py26\sgmlop.so
文件 2089532 2015-06-13 23:07 SublimeCodeIntel\arch\_macosx_universal_py26\_SilverCity.so
文件 0 2015-06-13 23:07 SublimeCodeIntel\arch\_macosx_universal_py26\__init__.py
文件 43972 2015-06-13 23:07 SublimeCodeIntel\arch\_macosx_universal_py33\sgmlop.so
文件 398088 2015-06-13 23:07 SublimeCodeIntel\arch\_macosx_universal_py33\_ielementtree.so
文件 2817692 2015-06-13 23:07 SublimeCodeIntel\arch\_macosx_universal_py33\_SilverCity.so
文件 0 2015-06-13 23:07 SublimeCodeIntel\arch\_macosx_universal_py33\__init__.py
文件 174592 2015-06-13 23:07 SublimeCodeIntel\arch\_win32_py26\cElementTree.pyd
............此处省略411个文件信息
- 上一篇:AUTOSAR模型与MBD
- 下一篇:实用多元统计分析(4e)
评论
共有 条评论