| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1697 人关注过本帖
标题:求助,各位英雄豪杰帮小女子一个忙了
取消只看楼主 加入收藏
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
快速回复:求助,各位英雄豪杰帮小女子一个忙了
数据加载中...
 
   



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

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