Discuss / Python / day1

拾贰

#1 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,Lisa!'''"

x=[n,f,s1,s2,s3,s4]

for item in x:

   print(item)

s4不知道怎么换行

拾贰

#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,\nLisa!'''"

x=[n,f,s1,s2,s3,s4]

for item in x:

   print(item)


  • 1

Reply