This adds a simple Python function to add two numbers. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
8 lines
183 B
Python
8 lines
183 B
Python
def add_numbers(a, b):
|
|
"""返回两个数字的和"""
|
|
return a + b
|
|
|
|
if __name__ == "__main__":
|
|
# 示例用法
|
|
result = add_numbers(3, 5)
|
|
print(f"3 + 5 = {result}") |