import anthropic
client = anthropic.Anthropic()
message = client.messages.create(
model="claude-opus-5",
max_tokens=1024,
messages=[{
"role": "user",
"content": "Hello, Claude"
}]
)
for block in message.content:
if block.type == "text":
print(block.text)选择符合您开发方式的开发者界面,以及适合您技术栈的基础设施。
Claude 也可在以下云平台上使用:
按照生命周期逐步推进,或直接跳转到您需要的内容。
为您的使用场景选择合适的模型。