When executing "print ('52 .50%%')", it will output 52.50%.
A: 正确
B: 错误
A: 正确
B: 错误
举一反三
- When executing "print ('52 .50%%')", it will output 52.50%.
- 下面那个程序代码是正确的_________ A: print("Programming is fun") print("Python is fun") B: print("Programming is fun")print("Python is fun") C: print("Programming is fun)print("Python is fun") D: print("Programming is fun)print("Python is fun")
- 不够输出20个星号的语句是( )。知识点:字符串的复制 A: print("********************") B: print("*"*20) C: print(20*"*") D: print(20+"*")
- 设变量a=15.69458能够输出: RMB15.69 的是()。 A: print("RMB{:.2f}".format(a)) B: print("RMB"+str(a)) C: print("RMB",a) D: print("RMB{}".format(a))
- 以下类方法定义正确的是() A: class Student: fav=("唱歌","跳舞","绘画") def showFav(cls): for item in cls.fav: print(item) B: class Student: fav=("唱歌","跳舞","绘画") @classmethod def showFav(cls): for item in fav: print(item) C: class Student: fav=("唱歌","跳舞","绘画") @classmethod def showFav(cls): for item in cls.fav: print(item) D: class Student: fav=("唱歌","跳舞","绘画") @classmethod def showFav(): for item in fav: print(item)