Jun-28-2019, 03:17 PM
Hi, i want to ask that when using string formatting:
Thank you very much!
>>> b={1:'a','1':'c'} >>> print('%(1)s abcd' % b) c abcdHow can we refer to the keys 1 (has value 'a') not the key '1' (has 'c' value).
Thank you very much!