博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  Python

摘要:1、流程控制#!/usr/bin/python#filename:test.pynumber = 23running = Truewhile running: guess = int(raw_input('Enter an integer: ')) if guess == number : print "congratulations,you guess it." print "(but you do not win any prizes!)" running = False elif guess < number: print & 阅读全文

posted @ 2012-10-19 23:35 bug yang 阅读(189) 评论(0) 推荐(0) 编辑

摘要:转载http://www.oschina.net/code/snippet_141427_4246还没有看,回来研究#!/usr/bin/env python#-*-coding:utf-8-*-#encoding=utf-8#--作者:小项--#--预览:http://www.20hotel.com/news--import sys;import os;import re;import random;import urllib2;import time;import datetime;#import socket;import MySQLdb as mysql;reload(sys)sys. 阅读全文

posted @ 2011-08-30 22:46 bug yang 阅读(296) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示