Discuss / Python / 为什么会有括号

为什么会有括号

Topic source

s1 = 'hello,world'

s2 = 'hello,','\\\'Adam\\\''

s3 = 'hello,','\"bart\"'

s4 = r'''hello,\n

lisa!'''

print(s1)

print(s2)

print(s3)

print(s4)

PS D:\python> python hello2.py

hello,world

('hello,', "\\'Adam\\'")

('hello,', '"bart"')

hello,\n

lisa!


  • 1

Reply