python 2.3.4中的语法错误 [英] Syntax error in python 2.3.4

查看:112
本文介绍了python 2.3.4中的语法错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是python代码的新手..我刚刚开始问世界...我最终得到了一个无效的语法错误...但是我能够从python的同一版本的python 2.3.4运行TCP服务器程序


Iam困惑!!

解决方案

你能在这里分享你的代码吗?


它可能像缺少引号一样简单。

展开 | 选择 | Wrap | 行号


D:\ Python23> python hii.py

文件" hii.py",第1行

Python 2.3.3(#51,2003年12月18日,20:22:39)[MSC v.1200 32位(英特尔)]获胜

32

^

语法错误:语法无效


当我尝试从cmd行运行程序时我得到了这个

i am new to the python codes.. i just started out hello world.. i ended up getting an "invalid syntax" error... but i was able to run a TCP server program from the very same version of python which is python 2.3.4

Iam perplexed !!

解决方案

Can you share your code here?


It could be something as simple as missing quotes.

Expand|Select|Wrap|Line Numbers


D:\Python23>python hii.py
File "hii.py", line 1
Python 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] on win
32
^
SyntaxError: invalid syntax


I got this when i tried to run the program from cmd line.


这篇关于python 2.3.4中的语法错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆