Python - How is it possible to keep a trailing space when returning a string? -


Is there a way to keep the rear behind the string when it comes back?

For example, the value is '6' if I return it back to a class in my main code then it will skip the end space.

If you really want to know that: The class looks at a number and then the scientific abbreviation is added, then by converting it from 5000 to 5 meters and then making the units "5 MV" later Works great, but if I have 5, then it tries to return "5", but it only makes 5 "which makes it look" 5V "which is inconsistent.

Edit Do: Sorry, everyone, but it really is actually in my part I had a stupid error that I was placed on the order on which the class () used to call. I was calling Python Debugger in in class and returning everything to it, but the debugger's The way the line of code is never actually shown, which calls once I saw it, it was really obvious.

You should not do anything. For example, this code prints "6 meters": "F" (Foo): "m" "

Output

  

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -