Discuss / Python / 作业

作业

Topic source

东楚寒

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

print('''# -- coding: utf-8 -- n = 123 f = 456.789 s1 = \'Hello,world\' s2 = 'Hello,\\'Adam\\'\' s3 = r'Hello,"Bart"' s4 = r\'''Hello, Lisa!\'\'\'''')

东楚寒

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

n='123' f='456.789' s1='\'Hello, world\'' s2='\'Hello, \\'Adam\\'\'' s3='r\'Hello, \"Bart\"\'' s4='r\'\'\'Hello,' print(n) print(f) print(s1) print(s2) print(s3) print(s4) 舒服了只打印变量的值


  • 1

Reply