文件操作 - test_debug.py
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/doc/python-pycurl-7.19.0/tests/test_debug.py
编辑文件内容
#! /usr/bin/env python # -*- coding: iso-8859-1 -*- # vi:ts=4:et # $Id: test_debug.py,v 1.6 2003/04/21 18:46:10 mfx Exp $ import pycurl def test(t, b): print "debug(%d): %s" % (t, b) c = pycurl.Curl() c.setopt(pycurl.URL, 'http://curl.haxx.se/') c.setopt(pycurl.VERBOSE, 1) c.setopt(pycurl.DEBUGFUNCTION, test) c.perform() c.close()
修改文件时间
将文件时间修改为当前时间的前一年
删除文件