目录

python测试笔试题1

哪一个方法用来返回变量类型?

which function is usd to get type of a variable

答案 type

哪一个方法用来列出一个类下的所有属性,方法,以及变量?

which function is used to list all names of a class’s attributes?

答案 dir

字符串方法format是用来去掉字符串的左右空格的么?

is the methods format used to get rid of blank space around a string?

答案 不是

python 的类可以有多个父类么?

can a class inheritance from multiple classes?

答案 是

哪一个函数是用来获得字符串长度?

which function is used to get the length of a string? len

答案 :len

原始封面

https://images.unsplash.com/photo-1551836022-b06985bceb24?w=300