第一个python程序

我们将看一下如何用Python编写运行一个传统的“Hello World”程序。通过它,你将学会如何编写、保存和运行Python程序。 有两种使用Python运行你的程序的方式——使用交互式的带提示符的解释器或使用源文件。 1.使用带提示符的解释器 在命令行的shell提示符下键入python,启动解释器。现在输入print 'Hello World',然后按Enter键。你应该可以看到输出的单词Hello World。 注意,>>>...

作者: biti-leaf 发布时间: 09-07

zeller.py

#Reesun Huang #zeller #algorithms:zeller.algorithms #2010.09.02 def zeller(month, day, year): #define the value of month value_month = {'Mar':1, 'Apr':2, 'May':3, 'Jun':4, 'Jul':5, 'Aug':6, \ 'Sep':7, 'Oct':8, 'Nov':9, 'Dec':10, 'Jan':11, 'Feb':12} str_R = {0:'Sun', 1:'Mon', 2:'Tue', 3:'Wed',\ 4:'Thu', 5:'Fri', 6:'Sat'} century = int(year) / 100...

作者: reesun 发布时间: 09-02

搭建Python的Eclipse开发环境

1.下载python 安装包.python-xxx.msi.并安装。 2.安装pydev插件. 下载插件并解压,将目录拷贝到Eclipse的相应目录中 3.配置插件 windows->perferences->pydev->interpreter-python 在最上面的 Python interpreters (e.g.:python.exe) 的右边, 点击 New... 按钮,选择python.exe所在地方(安装路径下找),确定,这样我们的eclipse下的python开发环境就配置好了。

作者: reesun 发布时间: 09-02