Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1078384
  • 博文数量: 120
  • 博客积分: 887
  • 博客等级: 准尉
  • 技术积分: 1883
  • 用 户 组: 普通用户
  • 注册时间: 2010-04-05 21:10
个人简介

RHCE,CCNA,熟悉shell脚本

文章分类

全部博文(120)

文章存档

2015年(16)

2014年(20)

2013年(48)

2012年(20)

2011年(16)

分类: Python/Ruby

2013-11-17 13:25:32

#! /usr/bin/python

'''区分argv与 '%s' 字符串传递之间的区别
argv 只是在最后传递参数
%s 字符串传递可以在任何位置传入。'''


script = raw_input("input the script file name:")
first = raw_input("input the first argv:")
second = raw_input("input the second argv:")
third = raw_input("input the third argv:")

na='kayson'

print "#" * 20

print "let's ta%slk about ." % na

print "-" * 20
print "The script is %s called:" % script
print "Your first variable is: ",first
print "your second variable is: ",second
print "%s Your third variable is: " % third
阅读(1527) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

CU博客助理2013-12-11 10:25:48

嘉宾点评:
作者对python 语言的细节把握的比较好,例子解释的比较详细,赞一个(感谢您参与“原创博文评选”获奖结果即将公布)