请问,我这个代码和答案上的代码有什么区别
s1 = 'ABC' s2 = '123' s3 = 'xyz' xl4='' for xl1 in s1: xl4=xl4+xl1 for xl2 in s2: xl4=xl4+xl2 for xl4 in s3: xl4=xl4+xl3 print(xl4)
s1 = 'ABC' s2 = '123' s3 = 'xyz' xl4='' for xl1 in s1: xl4=xl4+xl1 for xl2 in s2: xl4=xl4+xl2 for xl4 in s3: xl4=xl4+xl3 print(xl4)
2022-03-19
举报