Python语言正确的标识符是()
A: 2num
B: my-num
C: _num
D: num*2
A: 2num
B: my-num
C: _num
D: num*2
举一反三
- unsignedcharnum;num=0X98;num=num%10;num=num%10;num=?() A: 15 B: 8 C: 9 D: 2
- 定义整型数组num,有两个元素,这个数组的第二个元素是: A: num(2) B: num(1) C: num[1] D: num[2]
- 编写一个函数判断客户输入一个数字为1位、2位还是更多为,代码如下:请补全空下的代码num=int(input("输入一位或两位的数字:"))n='0'(1)n='1'(2)n='2'(3)d='>;2'print(n+"位数。”) A: 1: if num>;-10 and num<;10:2: eilf num >;-100 and num<;100:3: else: B: 1: if num>;10 and num<;-10:2: eilf num >;-100 and num<;100:3: else: C: 1: if num>;-10 and num<;10:2: eilf num <;-100 and num>;100:3: elif: D: 1: if num>;-100 and num<;100:2: eilf num >;-10 and num<;10:3: else:
- 下列程序的输出结果是() num = 27 count = 0 while num > 0: if num % 2 == 0: num /=2 elif num % 3 ==0: num /= 3 else: num -=1 count += 1 print (count)
- num=float(input('输入一个数字:\n'))<br/>num=int(num)<br/>num=int((num+5)/2)<br/>num=num*2-5<br/>num=int(num%5)<br/>print(num)输入:14.5输出:______