摘要:
1、dumps:将python中的 字典 转换为 字符串 import json test_dict = {'bigberg': [7600, {1: [['iPhone', 6300], ['Bike', 800], ['shirt', 300]]}]} print(test_dict) prin 阅读全文
摘要:
1、从字符串中获取文件路径 >>> import os >>> existGDBPath = r'T:\Data\DBDesign\DBDesign_93_v141b.mdb' >>> wkspFldr = os.path.dirname(existGDBPath) >>> print wkspFl 阅读全文