Skip to content

[SageMath] sagemath 中怎么把 100000000 表示成 100_000_000? #6

Closed Answered by Akagi201
Akagi201 asked this question in Week1
Discussion options

You must be logged in to vote

num = 10000000
formatted_num = f'{num:,}'.replace(',', '_')
print(formatted_num)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Akagi201
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant