Discuss / Python / str

陈宏柏

#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!''' print(str(n)+'\n'+str(f)+'\n'+str(s1)+'\n'+str(s2)+'\n'+str(s3)+'\n'+str(s4))


  • 1

Reply