7
这里是tab完成是如何工作对我来说:Tab键完成对列表中的元素
In [84]: a="string"
In [85]: b = ["str", "ing"]
Tab补齐字符串正在这里:
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
Tab键完成对列表正在这里:
In [86]: b.
b.append b.count b.extend b.index b.insert b.pop b.remove b.reverse b.sort
Tab补齐字符串不工作在这里:
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。由于
是的,但这是另一种解决方法。主要目标是使用Tab键。一些配置像bash的/ etc/bash_completion会很好 –
显然这个工作在PTVS IDE – denfromufa
ipython autocompletion被认为是使用jedi重构的:https://github.com/ipython/ipython/issues/8606 – denfromufa