为了账号安全,请及时绑定邮箱和手机立即绑定

码农们,求解

s = 'python was started in 1989 by \"guido\". \n python is free and easy to learn'

print s

为什么运行成功,输出错误

正在回答

2 回答

s = 'Python was started in 1989 by "Guido".\nPython is free and easy to learn.'

OR

s = '''Python was started in 1989 by "Guido".Python is free and easy to learn.'''

0 回复 有任何疑惑可以回复我~

输出错误没看出来?\n后面不能有空格,Pythoy的P大写,结尾少个句号

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
初识Python
  • 参与学习       758625    人
  • 解答问题       8667    个

学python入门视频教程,让你快速入门并能编写简单的Python程序

进入课程

码农们,求解

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信