下面是一个简单的爬虫程序。#!/usr/bin/env pythonfrom sys
import argvfrom os import makedirs, unlink, sepfrom os.path import dirname,
exists, isdir, splitextfrom str...
分类:
其他好文 时间:
2014-06-05 12:50:50
阅读次数:
341
Robot MotionDescriptionA robot has been
programmed to follow the instructions in its path. Instructions for the next
direction the robot is to move ar...
分类:
其他好文 时间:
2014-06-04 17:56:00
阅读次数:
247
下载语言包,直接把bin路径添加进PATH:Download the file
fromhttp://swiftlang.org/packages/swift-0.94.1.tar.gz.Extract by running "tar
xfz swift-0.94.1.tar.gz"Add to P...
分类:
其他好文 时间:
2014-06-03 14:53:04
阅读次数:
282
主要的原理包括:
继承UIView ,重载drawrect和重载触摸事件
待实现的功能还有,路径数组保存等。
#import "testdrow.h"
@implementation testdrow
UIColor *pick_color;
int choose;
UIBezierPath *mpath ;
UIBezierPath *eraser_path;
NSTimer *myt...
分类:
移动开发 时间:
2014-06-03 00:20:36
阅读次数:
323
问题:Virtul Box 安装增强功能时,
未能加载虚拟光盘VBoxGuestAdditions.iso分析:通过分析日志,%vbox_path%\VirtualBox Guest
Additions\install_drivers.log发现,查看安装过程中的信息,如下图,发现缺少 相关dll文...
分类:
系统相关 时间:
2014-06-02 16:24:55
阅读次数:
1812
parse_url()函数是将输入的URL结构分解成几个部分来将其转变为一个关联数组组成URL的几个基本部分为:scheme(协议名),host(主机名),port(端口号),path(文件路径),query(查询参数),user(用户名),pass(密码)如:http://www.example....
分类:
Web程序 时间:
2014-06-02 12:47:09
阅读次数:
300
一、Win7X64系统安装sybaseodbc:1、下载对应包至c:\system_odbc(文件夹名自己取,在后面注册表内容需要用到),接着需要将该目录添加至path环境变量下;2、将值信息写入到注册表内:WindowsRegistryEditorVersion5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBCINST.IN..
分类:
数据库 时间:
2014-06-02 03:21:37
阅读次数:
336
<?php
/**
* 文件操作(生成日志)支持多条插入
* (如果插入多条语句并换行 用','逗号分开)
*
*/
class log {
public $path = './info.txt'; //默认值文件
public $mode = 'a'; //默认追加写
public $content = '默认值:空'; //默认内容是 空
public ...
分类:
Web程序 时间:
2014-06-02 02:35:45
阅读次数:
231
题目链接:
http://poj.org/problem?id=3126
题目:
Prime Path
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 10737
Accepted: 6110
Description
The ministers of...
分类:
其他好文 时间:
2014-06-02 02:21:22
阅读次数:
228
方法1:在Eclipse中,右击项目,选择Java Build
Path->Libraries->Add External
JARs,找到你计算机中tomcat的安装路径,在common\lib文件夹下选中"servlet-api.jar",添加点击“确定”,ok!方法2:把servlet-api....
分类:
编程语言 时间:
2014-06-02 01:44:50
阅读次数:
349