题解 | #计算单位阶跃函数#
计算单位阶跃函数
https://www.nowcoder.com/practice/0b23793ae48a4e6cb7dfff042c959a04
while 1: try: t = int(input()) if t > 0: print(1) elif t == 0: print(1/2) else: print(0) except: break#题解#
计算单位阶跃函数
https://www.nowcoder.com/practice/0b23793ae48a4e6cb7dfff042c959a04
while 1: try: t = int(input()) if t > 0: print(1) elif t == 0: print(1/2) else: print(0) except: break#题解#
相关推荐