摘要:
Python 3.2# -*- encoding:UTF-8 -*-import urllib.request url = r'https://www.google.com.hk/intl/zh-CN/images/logo_cn.png'path = r'c:/img/logo_cn.png'data = urllib.request.urlretrieve( url, path )'module' object has no attribute 'urlretrieve'? 在 python3中,urllib 被拆分成三个 m 阅读全文
摘要:
php 编译安装参数--prefix=/usr/local/PHP php 安装目录--with-apxs2=/usr/local/apache/bin/apxs apache 安装目录--with-config-file-path=/usr/local/PHP/etc 指定 php.ini 位置--with-MySQL=/usr/local/mysql mysql 安装目录,对mysql的支持--with-MySQLi=/usr/local/mysql/bin/mysql_config mysqli 文件目录,优化支持--enable-safe-mode 打开安全模式--enable-ftp 阅读全文
摘要:
更新 python 2.6 到 python 3.2.3Linux : centOS-6.2安装相关程序yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel 获取源码包编译安装wget http://www.python.org/ftp/python/3.2.3/Python-3.2.3.tar.bz2tar -xjf Python-3.2.3.tar.bz2cd Python-3.2.3 ./configure --prefix=/opt/python3m... 阅读全文