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!
Sign in to make a reply
用户6610765864
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!