![图片[1]-python 3.4怎么分行-uusu优素-乐高,模型,3d打印,编程](http://uusucn.zbbe.cn/wp-content/uploads/2024/01/5e8703373d3ac649.jpg)
python里一行写不下,拆成多行,
\和()两种方法
在一行末尾 加上“ \”,也就是空格加上\
a='sdfaf'\ 'test'
注意两个对象都要独立,字符串必须都用双引号引起。
如果是if and 后加“ \”。
其实用括号也可以,比如
a=('sdfaf'
'test')
或者
if(xxxxisNoneand xxxisNoneand XXX)原文来自:https://www.py.cn
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END

![图片[1]-python 3.4怎么分行-uusu优素-乐高,模型,3d打印,编程](http://uusucn.zbbe.cn/wp-content/uploads/2024/01/5e8703373d3ac649.jpg)
python里一行写不下,拆成多行,
\和()两种方法
在一行末尾 加上“ \”,也就是空格加上\
a='sdfaf'\ 'test'
注意两个对象都要独立,字符串必须都用双引号引起。
如果是if and 后加“ \”。
其实用括号也可以,比如
a=('sdfaf'
'test')
或者
if(xxxxisNoneand xxxisNoneand XXX)原文来自:https://www.py.cn
暂无评论内容