zoukankan      html  css  js  c++  java
  • Exercise 13: Parameters, Unpacking, Variables

    from sys import argv
    script, first, second, third = argv
    print "The script is called:", script
    print "Your first variable is:", first
    print "Your second variable is:", second
    print "Your third variable is:", third

    Result:

    $ python ex13.py first 2nd 3rd The script is called: ex13.py
    Your first variable is: first
    Your second variable is: 2nd
    Your third variable is: 3rd

  • 相关阅读:
    activiti--操作例子
    activiti--服务表
    spring--加载资源文件
    Day17
    Day15
    Day14
    Day13
    Day12
    Day16
    Day11
  • 原文地址:https://www.cnblogs.com/hluo/p/4045416.html
Copyright © 2011-2022 走看看