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

问题报错1

Pythone软件上我写: s=('Python was started in 1989 by "Guido".\nPython is free and easy to learn.') print(s)为啥错了 应该怎么写

正在回答

3 回答

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

print需要换行

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

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

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

s=r'''Python was started in 1989 by "Guido".

Python is free and easy to learn.'''

print(s)

使用到多转义时用r  使用到多行时用'''..........'''

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

举报

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

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

进入课程

问题报错1

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