索尼Agent开发实习笔试题目.docxVIP

  • 2
  • 0
  • 约1.33万字
  • 约 17页
  • 2026-11-09 发布于江西
  • 举报

索尼Agent开发实习笔试题目.docx

考试时间:______分钟总分:______分姓名:______

一、编程语言基础(请将下列代码补充完整或改正错误)

1.以下Python代码的输出结果是什么?

```python

deffunc(x):

returnx+10

result=func(5)+func(3)

print(result)

```

2.以下Python代码中,关于类`Person`的描述有哪些不正确的地方?(请列举)

```python

classPerson:

def__init__(self,name):

=name

self.age=0

defcelebrate_birthday(self):

self.age+=1

person1=Person(Alice)

person1.celebrate_birthday()

print(person1.age)#输出1

```

3.填空,完善以下C++函数,使其实现计算两个整数`a`和`b`的最大公约数(GCD)。(使用辗转相

文档评论(0)

1亿VIP精品文档

相关文档