• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






会飞の鱼

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

随笔分类 -  python

上一页 1 2 3

python leaner
 
pyinstaller 打包
摘要:[root@mhc nsf]# pip install pyinstallerCollecting pyinstaller Downloading PyInstaller-3.3.tar.gz (3.5MB) 100% |████████████████████████████████| 3.5MB 阅读全文
posted @ 2017-10-28 13:55 会飞の鱼 阅读(1250) 评论(0) 推荐(0)
flask test
摘要:DATABASE_URI = 'mysql://root:mhc.123@127.0.0.1/test1' 阅读全文
posted @ 2017-10-12 21:01 会飞の鱼 阅读(141) 评论(0) 推荐(0)
python portia
摘要:docker run -i -t --rm -v <PROJECTS_FOLDER>:/app/data/projects:rw -p 9001:9001 scrapinghub/portia docker run -i -t --rm -v <PROJECTS_FOLDER>:/app/data/ 阅读全文
posted @ 2017-09-17 23:02 会飞の鱼 阅读(386) 评论(0) 推荐(0)
python scrapy
摘要:pip install Scrapy [root@localmesos ~]# scrapy -hTraceback (most recent call last): File "/usr/bin/scrapy", line 7, in <module> from scrapy.cmdline im 阅读全文
posted @ 2017-09-17 21:48 会飞の鱼 阅读(254) 评论(0) 推荐(0)
flask 发送邮件
该文被密码保护。
posted @ 2017-09-17 10:24 会飞の鱼 阅读(3) 评论(0) 推荐(0)
在Centos7下安装Python+Selenium+Firefox学习环境
摘要:Selenium 一自动化测试工具。它支持 Chrome,Safari,Firefox 等主流界面式浏览器,如果你在这些浏览器里面安装一个 Selenium 的插件,那么便可以方便地实现Web界面的测试。 所以呢,你要用Selenium你必须得先有个浏览器(大多数人没说这点,略坑!),无论是Chro 阅读全文
posted @ 2017-09-16 21:30 会飞の鱼 阅读(1892) 评论(0) 推荐(0)
python 安装pyqt4
摘要:yum install PyQt4-devel yum install qtwebkit-devel pip install PySide 阅读全文
posted @ 2017-09-16 20:48 会飞の鱼 阅读(382) 评论(0) 推荐(0)
Python 反射
摘要:首先通过一个例子来看一下本文中可能用到的对象和相关概念。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 #coding: UTF-8 import sys # 模块,sys指向这个模块对象 import inspect def foo(): pass # 函数,foo指向这 阅读全文
posted @ 2017-08-18 23:03 会飞の鱼 阅读(123) 评论(0) 推荐(0)
python consul
摘要:install pip install python-consul 阅读全文
posted @ 2017-07-24 13:17 会飞の鱼 阅读(197) 评论(0) 推荐(0)
python 形参
摘要:def fun(x="dx",y="dy"): print "fun " print x print yfun()fun("aa","bb")fun(x="ha",y="la")ct = dict(x="haha",y="lala")fun(**ct) fun dxdyfun aabbfun hal 阅读全文
posted @ 2017-07-24 11:10 会飞の鱼 阅读(128) 评论(0) 推荐(0)
python mysql connector
摘要:install pip install mysql-connector-python-rf 报错 从https://dev.mysql.com/downloads/connector/python/ 下载 [root@mhc 下载]# rpm -ivh mysql-connector-python- 阅读全文
posted @ 2017-07-24 11:09 会飞の鱼 阅读(322) 评论(0) 推荐(0)
python json5
摘要:install pip install json5 test a.json: 阅读全文
posted @ 2017-07-24 10:25 会飞の鱼 阅读(1205) 评论(0) 推荐(0)
python 解析 yaml文件
摘要:import yamlwith open("./test.yaml") as f: x = yaml.load(f)print(x)[{'tasks': [{'yum': {'state': 'latest', 'name': 'httpd'}, 'name': 'ensure apache is 阅读全文
posted @ 2017-06-27 09:53 会飞の鱼 阅读(10472) 评论(0) 推荐(0)
python 装饰器
摘要:from functools import wrapsdef print_task(fn, *args, **kwargs): def _decorate(fn, *args, **kwargs): @wraps(fn) def wrapper(*args, **kwargs): print arg 阅读全文
posted @ 2017-06-22 08:37 会飞の鱼 阅读(151) 评论(0) 推荐(0)
获取本机ip
摘要:import socketimport structimport fcntldef get_ip(iface='eth0'): """ Use Linux SIOCGIFADDR ioctl to get the IP for the interface. ref http://code.activ 阅读全文
posted @ 2017-05-17 14:05 会飞の鱼 阅读(149) 评论(0) 推荐(0)
virtualenv
摘要:使用virtualenv创建虚拟python环境 阅读全文
posted @ 2017-04-13 21:05 会飞の鱼 阅读(138) 评论(0) 推荐(0)
 

上一页 1 2 3