We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95d6219 commit 94d37bfCopy full SHA for 94d37bf
mypr15.py
@@ -52,8 +52,8 @@
52
# print(a)
53
54
#多分支选择结构
55
-score = int(input('输入一个分数:'))
56
-grade = ''
+# score = int(input('输入一个分数:'))
+# grade = ''
57
# if score>=90:
58
# grade = '优秀'
59
# elif score>=80:
@@ -76,4 +76,22 @@
76
77
# print("分数是{0},等级是{1}".format(score,grade))
78
79
+x = int(input('输入x轴坐标:'))
80
+y = int(input('输入y轴坐标:'))
81
+
82
+if(x==0 and y==0):
83
+ print("坐标在原点")
84
+elif(x==0):
85
+ print("坐标在y轴上")
86
+elif(y==0):
87
+ print("坐标在x轴上")
88
+elif(x>0 and y>0):
89
+ print('坐标在第一象限')
90
+elif(x<0 and y>0):
91
+ print('坐标在第二象限')
92
+elif(x<0 and y<0):
93
+ print('坐标在第三象限')
94
+else:
95
+ print('坐标在第四象限')
96
97
0 commit comments