
python
JeremyIO
阅读,实践,总结,分享。
展开
-
程序设计入门—Python
持续更新中 …第二周:数据类型、运算符与表达式、变量赋值与简单I/O操作第二周测验1单选(1分) 执行下列语句,输出的结果是?x = 7.0y = 5print x % yA.1 B.2.0 C.1.0 D.2 2单选(1分) 能实现下面功能的程序是? 接收用户输入的一个整数。如果输入的是偶数,则输出“True”,否则输出“False”。 A.print int(raw_inpu原创 2015-05-17 22:18:51 · 18381 阅读 · 0 评论 -
python virtualenv
install# pip install virtualenvcreate env:# virtualenv ~/.newnevactivate newenv:source ~/.newenv/bin/activateexit newenv:deactivate原创 2015-06-16 11:52:49 · 400 阅读 · 0 评论 -
python-spider
#!/usr/bin/env python#coding: utf-8import urllibimport urllib2import cookielibimport getpassdef login(): loginname = raw_input("Enter your username: ") password = getpass.getpass("Enter yo原创 2015-08-27 17:50:09 · 982 阅读 · 0 评论 -
pip: InsecurePlatformWarning: A true SSLContext object is not available
在用pip7.1.2版本安装第三方模块时出现了如下警告:..._vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropr原创 2015-12-27 21:09:21 · 1143 阅读 · 0 评论 -
fabric初试
安装:yum install -y python-pip openssl-devel python-devel python-pip libffi-devel libffipip install fabric执行pip install fabric时自动安装的一些依赖包:requirements:asn1crypto-0.24.0 bcrypt-3.1.4 cffi原创 2018-01-31 17:55:38 · 590 阅读 · 0 评论