例9.3 使用元组输出
#!/usr/bin/python
# Filename: print_tuple.py
age =
22
name =
'Swaroop'
print
'%s is %d years old'
% (name, age)
print
'Why is %s playing with that python?'
% name
(源文件:code/print_tuple.py)
$ python print_tuple.py
Swaroop is 22 years old
Why is Swaroop playing with that python?