【发布时间】:2015-09-30 12:56:24
【问题描述】:
这是标签完成对我的工作方式:
In [84]: a="string"
In [85]: b = ["str", "ing"]
字符串的制表符补全在这里工作:
In [86]: a.
a.capitalize a.decode a.expandtabs a.index a.isdigit a.istitle a.ljust a.partition a.rindex a.rsplit a.splitlines a.swapcase a.upper
a.center a.encode a.find a.isalnum a.islower a.isupper a.lower a.replace a.rjust a.rstrip a.startswith a.title a.zfill
a.count a.endswith a.format a.isalpha a.isspace a.join a.lstrip a.rfind a.rpartition a.split a.strip a.translate
列表的制表符补全在这里工作:
In [86]: b.
b.append b.count b.extend b.index b.insert b.pop b.remove b.reverse b.sort
字符串的制表符补全在这里不起作用:
In [87]: b[0].
一种可能的解决方法:
In [88]: c = b[0]
In [89]: c.
c.capitalize c.decode c.expandtabs c.index c.isdigit c.istitle c.ljust c.partition c.rindex c.rsplit c.splitlines c.swapcase c.upper
c.center c.encode c.find c.isalnum c.islower c.isupper c.lower c.replace c.rjust c.rstrip c.startswith c.title c.zfill
c.count c.endswith c.format c.isalpha c.isspace c.join c.lstrip c.rfind c.rpartition c.split c.strip c.translate
是否可以在没有提及解决方法的情况下使用完成?我在 ipdb 中遇到了类似的行为,是否也可以在那里修复这种行为?我正在使用 ipythoon v3.1.0 和 ipdb v 0.8。谢谢
【问题讨论】:
标签: python autocomplete ipython jupyter ipdb