Discuss / Python / 反着推好苦难

反着推好苦难

Topic source

你六c

#1 Created at ... [Delete] [Delete and Lock User]

n = 123 print('n =',n) f = 456.789 print('f=',f) s1 = "'Hello, world'" print('s1=',s1) s2 = "'Hello, \'Adam\''" print('s2=',s2) s3 ='r\'Hello, "Bart"\'' print('s3=',s3) s4 = "r'''Hello,\nLisa!'''"答案1 s4 = 'r\'\'\'hello,\nLisa!\'\'\''答案2 print('s4=',s4)


  • 1

Reply