4. 多行字符串¶
4.1. Python¶
#!/usr/bin/env python
# -*- coding:utf8 -*-
# auther; 18793
# Date:2020/4/21 13:50
# filename: sample1.py
print(
"""This is
a multi-line string.
""")
print(
"O'word "
'Another "word" '
"Last word."
)
4.2. Go¶
package main
import "fmt"
func main() {
fmt.Println(`This is
a multi-line string.`)
fmt.Println(
"O'word " +
"Another \"word\" " +
"Last word.")
}