填空题 编写程序,交换两个变量的值 python a = 5 b = 10 ____ = b, a # 填空

下载APP答题
由4l***a6提供 分享 举报 纠错

相关试题

填空题 编写程序,判断变量x的类型 python x = [1, 2, 3] print(____(x)) # 填空

填空题 编写程序,将字符串"3.14"转换为浮点数 python num_str = "3.14" num_float = ____(num_str) # 填空

填空题 编写程序,提取字符串"Python"的前3个字符 python s = "Python" result = ____ # 填空

填空题 编写程序,判断一个数是否为偶数 python num = 10 if ____ % 2 == 0: # 填空 print("偶数")

填空题 编写程序,将整数123转换为字符串 python num = 123 num_str = ____(num) # 填空

填空题 编写程序,计算圆的面积(半径r=5) python r = 5 pi = 3.14159 area = ____ # 填空

填空题 编写程序,计算两个数的和并输出结果 python a = 5 b = 3 print(____) # 填空

填空题 编写程序,将字符串全部转为大写 python text = "hello world" result = text.____() # 填空