python if語句判斷

直接上代碼: x=int(input("請輸入x的座標:")) y=int(input("請輸入y的座標:")) if(x==0 and y==0):print("位於原點") elif(x==0):print("位於y軸") elif(y==0):print("位於x軸") elif(x>0 and y>0):print("位於第一象限") elif(x<0 and y>0):print("位於
相關文章
相關標籤/搜索