您的位置:首页 > 编程语言 > Python开发

python 字符串

2016-07-13 17:14 501 查看
print 'goood'
str='bad'
print str
print "It's good"
print 'You are a "BAD" man'
print 'I\'m a \"good\" teacher'
print "this is the\
same line"
print '''
"What's your name?"I asked.
"I'm Han Meimei."
'''
print ''' He said,"I'm yours!" '''
print '\\\_v_//'
print 'Stay hungry,\nstay foolish.\n     --Steve Jobs'
print'*\n***\n*****\n***\n*'


结果:

>>> 

goood

bad

It's good

You are a "BAD" man

I'm a "good" teacher

this is thesame line

"What's your name?"I asked.

"I'm Han Meimei."

 He said,"I'm yours!" 

\\_v_//

Stay hungry,

stay foolish.

     --Steve Jobs

*

***

*****

***

*
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  python 字符串