用and表示就好了
a=int(input()) b=int(input()) if a!=0 and b!=0: print(a/b)
表示且的 关系要用 and
if a!=0 and b!=0
你可以百度一下python的逻辑运算符,如有帮助,点一下下采纳