python_code_410

1. string concatenation 

  print "You " + "and " + "Me" -- You and Me 

  #Make sure you include the spaces after "You" and "and"

2. print ? Date and Time 4/6

  print "%s/%s/%s" % (now.month, now.day,now.year) and 

  print '%s/%s/%s'% (now.month, now.day,now.year)

  单引号和双引号结果相同?

posted @ 2015-04-10 10:30  Rayvin  阅读(161)  评论(0编辑  收藏  举报