python

  拼接字符串:

>>> x="hello"
>>> y="world"
>>> x+y
'helloworld'

  将python值转换为字符串三种方法:str函数把值转换为字符串,repr函数以表达式形式表示值,反引号.

  raw_input函数会把所有输入当作原始数据放入字符串中.

  

 

posted on 2014-10-17 11:48  LeePotato  阅读(151)  评论(0)    收藏  举报

导航