Python में लाइन का सही ट्रांसफर
📁 सूची, पायथन, उदाहरण
बताओ, एक लिस्ट है जिसमें phrases हैं, लेकिन वे लंबे हैं और pep8 लाइन की लंबाई पर शिकायत करता है।
मैं phrase के हिस्से को \ सिंबल से ट्रांसफर करता हूं, लेकिन फिर वह सभी gaps को गिनता है।
उदाहरण:
list_of_words = [ "" "The weather is good." "" , "" "Hot dog is the best food, \ it would be a sure sign that it was still yummy." "" , "" "The girls are beautiful." "" , "" "Anyone doesn’t matter, but after backslashes a huge \ distance between words. How to fix it?" "" ] print (*list_of_words) आउटपुट:
The weather is good. Hot dog is the best food, it will be a sure sign that it was still yummy. T