[英]What is the purpose of the bracketed START/END comments in this google code?
# [START list_instances]
def list_instances(compute, project, zone):
result = compute.instances().list(project=project, zone=zone).execute()
return result['items'] if 'items' in result else None
# [END list_instances]
Can anyone tell me what these are for?谁能告诉我这些是干什么用的? They look like editor hints, or perhaps some auto-documentation thing, but I was not able to find information about it.
它们看起来像编辑器提示,或者可能是一些自动文档的东西,但我无法找到有关它的信息。
Looks like "user2357112 supports Monica" has the correct answer - the (Google-internal) documentation system seems to use these section boundaries to extract relevant code samples into the documentation.看起来“user2357112 支持莫妮卡”有正确的答案 - (谷歌内部)文档系统似乎使用这些部分边界将相关代码示例提取到文档中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.