以下代码的执行结果是______。 x,y,z = 3,4,5 print('x = {1},y ={0},z={0}'.format(x,y,z))
A. x = 4,y =5,z=3
B. x = 4,y =4,z=3
C. x = 4,y =3,z=3
D. x = 3,y =4,z=5
下面代码的执行结果是 a = "Python等级考试" b = "=" c = ">" print("{0:{1}{3}{2}}".format(a, b, 25, c))
A. ===============Python等级考试
B. Python等级考试===============
C. >>>>>>>>>>>>>>>Python等级考试
D. Python等级考试>>>>>>>>>>>>>>>
下面代码的输出结果是 a = 1000000 b = "-" print("{0:{2}^{1},}\n{0:{2}>{1},}\n{0:{2}<{1},}".format(a,30,b))
A. 1,000,000--------------------- ---------------------1,000,000 ---------1,000,000-----------
B. ---------------------1,000,000 ----------1,000,000----------- 1,000,000---------------------
C. ---------------------1,000,000 1,000,000--------------------- ----------1,000,000-----------
D. ----------1,000,000----------- ---------------------1,000,000 1,000,000---------------------