I am trying to right align my printed text with a tab space between the two generated columns.
di = {"name": "John", "Job": "Scientist", "Age": "N/A", "OS": "Mac"}
di = di.items()
for (keys, values) in di:
print(keys, "", values)
However I get the below print output.
name John
Job Scientist
Age N/A
OS Mac
I have swapped the print statement with print(f"{keys}{values:>15}")
but it doesn't really help and I get the below print.
name John
Job Scientist
Age N/A
OS Mac
I am trying to get this:
name John
Job Scientist
Age N/A
OS Mac
Any suggestions?
EDIT: I would ideally like this to work when printed out in PyCharm or sublime text output when the print command is instructed.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…