""" 模塊:python3 pprintModule.py 知識點: 1.pprint.pprint(object, stream=None, indent=1, width=80, depth=None, *, compact=False, sort_dicts=True) Pretty-print a Python object to a stream [default is sys.stdout]. """ import pprint d = [(117.16530851332595, 39.145386829934125), (117.16578052429168, 39.14538119748022), (117.16615280134363, 39.145351937138685), (117.16725256066957, 39.145265489808594), (117.1696631439064, 39.1451861848941), (117.17102121729738, 39.1451414831933), (117.17430993363723, 39.14503316704946), (117.17463600352335, 39.145022421949875), (117.17727976027788, 39.14493527404795), (117.179086777924, 39.14487567237978), (117.18006238764235, 39.144843482047065), (117.18115761978117, 39.1448073337981), (117.18148536510421, 39.144812771099055), (117.18209628175327, 39.14482290286105), (117.1839854731511, 39.14485421185816)] pprint.pprint(d) # [(117.16530851332595, 39.145386829934125), # (117.16578052429168, 39.14538119748022), # (117.16615280134363, 39.145351937138685), # (117.16725256066957, 39.145265489808594), # (117.1696631439064, 39.1451861848941), # (117.17102121729738, 39.1451414831933), # (117.17430993363723, 39.14503316704946), # (117.17463600352335, 39.145022421949875), # (117.17727976027788, 39.14493527404795), # (117.179086777924, 39.14487567237978), # (117.18006238764235, 39.144843482047065), # (117.18115761978117, 39.1448073337981), # (117.18148536510421, 39.144812771099055), # (117.18209628175327, 39.14482290286105), # (117.1839854731511, 39.14485421185816)]
python3 pprintModule.py
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.