Adding thousand separator while printing a number [duplicate]
问题 This question already has answers here : How to print number with commas as thousands separators? (27 answers) Closed 7 years ago . I don't really know the "name" for this problem, so it might be a incorrect title, but the problem is simple, if I have a number for example: number = 23543 second = 68471243 I want to it make print() like this. 23,543 68,471,243 I hope this explains enough or else add comments. Any help is appreciated! 回答1: If you only need to add comma as thousand separator and