+ 1
What is the deference between using format() function and using these %s , %d ...
print ('{0}'.format('a')) . . print ('%s' % ('b')) ?
2 Respostas
+ 2
1. https://www.quora.com/What-are-the-differences-among-s-r-and-d-in-JUMP_LINK__&&__Python__&&__JUMP_LINK
2. https://www.edureka.co/community/47833/difference-between-s-and-d-in-python-string-formatting
3. https://www.udacity.com/blog/2020/11/python-string-format-whats-the-difference-between-s-and-d.html
4. https://www.geeksforgeeks.org/difference-between-s-and-d-in-python-string/
5. https://www.geeksforgeeks.org/python-format-function/
https://stackoverflow.com/questions/4288973/whats-the-difference-between-s-and-d-in-python-string-formatting
+ 1
%s is used for string and %d is used for integer.....looks like you are working with python....if i am correct then you dont need %s or %d ....you can do anything without them....