def _get_name_for_position(position: List[int], variables: Container[str]) -> str:
new_name = 'i{}'.format('.'.join(map(str, position)))
if new_name in variables:
counter = 1
while '{}_{}'.format(new_name, counter) in variables:
counter += 1
new_name = '{}_{}'.format(new_name, counter)
return new_name
评论列表
文章目录