①x//7 = x/7 ②x//7= = 0 ③x%7= = 0 ④x = =7*int(n) ⑤x//7= = int(x/7)
x = 12 + 3 * (5 * 8-14)//5 print (x) |
flag = False name= "C++" if name == "Python": flag = True print ("Welcome") else: print (name) |
n=0 for i in range(1,4): n=n+i print (n) |
s=[1,3,5,7,9] s.insert(2,6) print(s) |
序号 | 姓名 | 性别 | 银行卡号 | 消费金额 |
1 | 张*申 | 男 | 6225********1234 | 156.80 |
这种数据保护称为( )
a=17.95 b= -18 m= int(a) if abs (b) > m: m = b else: m = a print ("m=",m) |
x = int(input("请输入x的值")) if x > 0 : y = sqrt(2 * x) + 1 elif x == 0: y = 0 else: y = x ** 2 -1 print (y) |
c=0 list=[55,82,70,46,53,65,33,87,73,67] for i in range(10): if _____: c = c + 1 print(“列表list中小于60的数的个数为:”, c) |
a=input() b=input() c=a+b print(c) |
n = int(input("n=")) n = n % 1000 n = n // 100 print (n) |
x=25 y=15 if x/5==int(x/5): x = x + y else: y = x – y print (x , y) |
i = 0 sum = 0 t = 1 while sum < 10: i = i+ 1 t=t*i sum = sum + t print (sum) |
s = 0 for x in range(20,1,-3) : s = s + x print (s) |
n = 36 s = 0 for i in [2,3,4,5,6,7,8]: if n % i == 0: s = s + 1 print (s) |
①range(0, 7) ②range(1, 7) ③range(0, 7, 1)
④range(1,7,1) ⑤range(7,1,-1) ⑥range(7,0,-1)
①day=0
②limit=float (input(“请输入家长设定值(小时) :”))
③for i in range(7):
④ time=float(input(“请输入阅读时间(小时) :”))
⑤ if time>limit:
⑥ day=day+1
⑦print(“有”, day, “天阅读时间小于家长设定值”)
图1 预期结果 |
图2 调试结果 |
请写出出错的语句的编号,并写出修改后的语句: 。