How do you change single quotes to double quotes in Python?

Quang Hiếu

New member
How do you change single quotes to double quotes in Python?
Answer
You could also extend Python’s str type and wrap your strings with the new type changing the
__repr__ () method to use double quotes instead of single.
 

Tìm kiếm

Back
Top