Questions tagged «f-string»

16
නූල් හැඩතල ගැන්වීම:% එදිරිව. ආකෘතිය
පයිතන් 2.6 මෙම str.format()ක්‍රමය හඳුන්වා දුන්නේ පවතින %ක්‍රියාකරුට වඩා තරමක් වෙනස් සින්ටැක්ස් සමඟිනි . වඩා හොඳ කුමක්ද සහ කුමන තත්වයන් සඳහාද? පහත දැක්වෙන්නේ එක් එක් ක්‍රමය භාවිතා කරන අතර එකම ප්‍රති come ලය ඇත, එබැවින් වෙනස කුමක්ද? #!/usr/bin/python sub1 = "python string!" sub2 = "an arg" a = "i am …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.