Skip to content
Life is short Play more
  • AI技术
  • Computer
    • Cloud
    • DataBase
      • Mysql
      • Oracle
    • Operation system
      • Android
      • Linux
      • Windows
    • Programming
      • C , C++
      • Java
      • Javascript
      • Linux shell
      • Php
      • python
      • Web Programing
    • Security
    • Virtulization
    • Web hosting
      • Ad
  • Life Testing
  • My work
    • wrapEasyDevice
  • Network
    • HTTP
  • Note
  • Other
    • Embedded
    • Hardware
  • Share
    • Articles
    • Music
    • Tools
    • Video
  • Software Testing
    • Automation Testing
    • Cloud Testing
    • Functional Testing
    • Performance Testing
Life is short Play more
Life is short play more

python 如何定义多行字符串变量

Posted On 2012年9月6日
s = """Line1
Line2
 Line3""" 
 print s

或者

s = '''Line1
Line2
Line3'''

print s

此篇文章已被阅读2610 次

相关文章

  1. python: TypeError: ‘module’ object is not callable
  2. python zlib, _ssl module not found
  3. python no module named _curses的问题解决

Related Posts

appium简单总结(一)
安装pyOpenSSL报错
自我实现python单元测试框架

About The Author

The Tester

技术交流,生活学习

© 2026 Life is short Play more | blog | Powered by WordPress & Customizable Blogily