04 2018 档案

Python_55之XML文件的操作(以python_myxml.xml(test.xml)博客内容为操作对象)
摘要:namelist{'ddd': "'bn'"} dddddffdd 这之后 test.xml文件的内容变化了—————————————————————————————————————————————————————— 根据字符串的创建例子:s="123zifuchuan" 或者s=str(123zi 阅读全文

posted @ 2018-04-19 23:06 JuGooLar 阅读(180) 评论(0) 推荐(0)

Python_myxml.xml(test.xml)
摘要:<breakfast_menu><food><name>Belgian Waffles</name><price>$5.95</price><description>two of our famous Belgian Waffles with plenty of real maple syrup</ 阅读全文

posted @ 2018-04-19 22:43 JuGooLar 阅读(138) 评论(0) 推荐(0)

Python_54之requests模块
摘要:requests模块 发送http请求 (用python模拟浏览器,爬虫用) {"weatherinfo":{"city":"西安","cityid":"101110101","temp":"20","WD":"西南风","WS":"1级","SD":"14%","WSE":"1","ti 阅读全文

posted @ 2018-04-16 17:20 JuGooLar 阅读(156) 评论(0) 推荐(0)

Python_53安装第三方模块之requests
摘要:第三方模块 requests 1、安装模块 软件管理工具安装方法 python3用 pip3安装 用setoptools安装 pip3 install requests 源码安装方法 下载之后解压 运行setup.py文件 2、 阅读全文

posted @ 2018-04-16 13:33 JuGooLar 阅读(114) 评论(0) 推荐(0)

Python_52Json模块_urlLIB
摘要:html语言 json.loads用于将字典 列表 元组 形成的字符串 转换成相应的 字典 列表 元组 json.dumps()将 python的基本数据类型转换为字符串 loads不能将元组模型的字符串转换为元组 dumps可以将元组数据类型转换为列表模型的字符串 阅读全文

posted @ 2018-04-13 17:20 JuGooLar 阅读(133) 评论(0) 推荐(0)

Python_51全局变量
摘要:查看默认的全局变量 {'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <_frozen_importlib_external.SourceFileLoader object at 0x000000 阅读全文

posted @ 2018-04-13 14:59 JuGooLar 阅读(152) 评论(0) 推荐(0)

Python_50字符串格式化
摘要:字符串一经创建即在内存中存在,修改之后在内存中会重新创建 Python字符串格式化方式有两种:百分号方式(老旧 功能少) format方式(功能多 新颖 支持多) 以上前两个%是占位符号 第三个 % 是表示连接符号 %[(name)]typecode %[(name)][flags][width]t 阅读全文

posted @ 2018-04-12 15:41 JuGooLar 阅读(151) 评论(0) 推荐(0)

Python_49模块及模块导入_OS模块_SYS模块_hashlib模块_用户登录密码加密验证的例子
摘要:一个py文件就可以是一个模块 Python导入模块名的查找:先去该文件目录下找 Pycharm 里面查找 安装包查找 import 自写模块的时候需要把模块的全部地址尽量写出写全 例如:模块文件目录 C:\user\python\test\123\rew.py 当前文件位置:C:\\user\pyt 阅读全文

posted @ 2018-04-02 12:42 JuGooLar 阅读(219) 评论(0) 推荐(0)

导航