1 x = float(input("请输入横坐标:"))
2 y = float(input("请输入纵坐标:"))
3 if x > 0 and y > 0:
4 print("该点在第一象限")
5 elif x < 0 and y > 0:
6 print("该点在第二象限")
7 elif x < 0 and y < 0:
8 print("该点在第三象限")
9 elif x > 0 and y < 0:
10 print("该点在第四象限")
11 else:
12 print("该点在原点")
人生苦短,我python基础教程用python!

![[手游] 三网H5小游戏【少年仙路】WIN系服务端+Linux手工服务端+详细搭建教程](https://cdn.jxasp.com:9143/image/20260615/136BC33AA47EB0D84E878835A8B38FDB.png)

















