美文网首页
Python 3 Programming Tutorial -

Python 3 Programming Tutorial -

作者: 豆表示低调 | 来源:发表于2016-08-30 14:09 被阅读0次
>>> Bucky Roberts
SyntaxError: invalid syntax
>>> "Bucky Roberts"
'Bucky Roberts'
>>> 'Bucky Roberts is awesome!'
'Bucky Roberts is awesome!'
>>> 'I don't think shes 18'
SyntaxError: invalid syntax
>>> "I don't think shes 18"
"I don't think shes 18"
>>> 'She said, "What part of the cow is the meatloaf from?" '
'She said, "What part of the cow is the meatloaf from?" '
>>> 'I don\'t think shes 18'
"I don't think shes 18"
>>> print("hey now brown cow")
hey now brown cow
>>> print('C:\Bucky\Desktop\nudePics')
C:\Bucky\Desktop
udePics
>>> print(r'C:\Bucky\Desktop\nudePics')
C:\Bucky\Desktop\nudePics
>>> firstName = "Bucky "
>>> firstName + "Roberts"
'Bucky Roberts'
>>> firstName + "McLovin"
'Bucky McLovin'
>>> firstName * 5
'Bucky Bucky Bucky Bucky Bucky '

相关文章

网友评论

      本文标题:Python 3 Programming Tutorial -

      本文链接:https://www.haomeiwen.com/subject/clvfettx.html