标题:求助,各位英雄豪杰帮小女子一个忙了
取消只看楼主
catherine716
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2012-6-10
结帖率:0
已结贴  问题点数:20 回复次数:0 
求助,各位英雄豪杰帮小女子一个忙了
为什么 为什么 十万个问什么它错了呀?
Write a program that reads an integer from input, then outputs one of the capitalized words Positive, Negative, or Zero according to whether the number is positive, negative, or zero


x=int(input())
y=0
if x > y
print("Positive")
if x = = y
print("Zero")
if x < y
print("Negative")


Traceback (most recent call last):
  In line 3 of the code you submitted:
    if x > y
           ^
SyntaxError: invalid syntax
望各路英雄豪杰给解答,小女子这厢无比感谢,撒个花~
搜索更多相关主题的帖子: whether invalid positive one 
2012-06-10 12:06



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-371224-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.505480 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved