Python 3

In interactive mode, the last printed expression is assigned to the variable _

>>> price * tax

12.5625

>>> price + _

113.0625

>>> round(_, 2) 1

13.06

 

 

print("""\ Usage: thingy [OPTIONS] -h Display this usage message -H hostname Hostname to connect to """)

hello = r"This is a rather long string containing\n\ several lines of text much as you would do in C."

posted @ 2013-09-15 13:29  yjjsdu  阅读(128)  评论(0编辑  收藏  举报