|
发表于 2021-6-10 16:26:07
|
显示全部楼层
- import random,string
- n="".join([random.choice(string.digits) for x in range(100)])
- m="".join([random.choice(string.digits) for x in range(100)])
- print(" "*10+n)
- print(" "*8+"+ "+m)
- print(" "*10+"="*100)
- print('{:110}'.format(int(m)+int(n)))
- '''
- PS D:\wp> py app4.py
- 8542431034812395177009598203100355169449839121682796988127268707541958692303508624718367517162510749
- + 5044646038941952675394099580299528334726191395151315043453103851948951326386909693235364758014363044
- ====================================================================================================
- 13587077073754347852403697783399883504176030516834112031580372559490910018690418317953732275176873793
- PS D:\wp> py app4.py
- 0532729803002175366027556374592222431669423856500040750677957516096387161249608850768089481908268775
- + 5198253214513400692010949477835527930378387883200814088092174767578060620350433163540067118802248821
- ====================================================================================================
- 5730983017515576058038505852427750362047811739700854838770132283674447781600042014308156600710517596
- PS D:\wp> py app4.py
- 6617665876195115711235292353776788781283045433136509093197105406016705274735919481436793235913334492
- + 8670748451747292172198134989625200945657351928953963302941815109843533806968369677895728996097024380
- ====================================================================================================
- 15288414327942407883433427343401989726940397362090472396138920515860239081704289159332522232010358872
- PS D:\wp>
- '''
复制代码 |
|