不就是按廖老师的变量赋值,然后print看结果吗?你们私自改了变量的值是几个意思?
n = 123 print(n) 123 f=456.789 print(f) 456.789 s1 = 'hello,world' print(s1) hello,world s2 = 'hello,\Adam\'' print(s2) hello,\Adam' s3 = r'hello,"Bart"' print(s3) hello,"Bart" s4 = r'''Hello, ... Lisa!''' print(s4) Hello, Lisa! print(r'''Hello, ... Lisa!''') Hello, Lisa!
你自己看一下你的s2
Sign in to make a reply
DIDADI201306
不就是按廖老师的变量赋值,然后print看结果吗?你们私自改了变量的值是几个意思?