Skip to content

Instantly share code, notes, and snippets.

@xiangzhuyuan
Created December 23, 2013 14:40
Show Gist options
  • Save xiangzhuyuan/8098216 to your computer and use it in GitHub Desktop.
Save xiangzhuyuan/8098216 to your computer and use it in GitHub Desktop.
尼瑪凡是讓我看不懂的代碼就是壞代碼!
class FakeRoot(object):
thrift_spec = ((0, 'XXX', 'xxx', (123, 123), None, ), 1)
a = FakeRoot()
print a.thrift_spec[0][1]
print a.thrift_spec[1]
print type(a.thrift_spec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment