(1) two string fore and aft cross the architectural string length, connecting the two strings, fore and aft cross section only retain a connection in 1234 and 2347 to 12347, for example,
Requirements: using lambda expressions and functions in the program
CodePudding user response:
a='1234'
B='2347'
R=sum (map (lambda x, if x [-x:]==b [: x] else 0, range (1, len (a) + 1)))
Print (a + b/r:)
CodePudding user response:
R=sum (map (lambda x, if x [-x:]==b [: x] else 0, range (1, len (a) + 1)))You can explain this
The child is too dishes
CodePudding user response:
> A='1234'> B='2347'
> C=lambda x, y: ' 'the join (sorted (set | set (y) (x)))
> C (a, b)
'12347'