import urllib2
f=urllib2.urlopen(raw_input("Please enter the URL:"))
ff=open(raw_input("Please enter the filename:"),"w+")
for x in range(1,1000):
s=f.read()
ff.write(s)
ff.close()
阅读全部 | 2019年4月4日 17:59
#include<bits/stdc++.h>
using namespace std;
namespace random
{
int randint(int n)
{
srand(time(0));
return rand()%n;
}
}
using namespace random;
int main(void)
......................
阅读全部 | 2019年3月7日 18:14
import urllib2
f=urllib2.urlopen(raw_input("Please enter the URL:"))
s=f.read()
ff=open(raw_input("Please enter the filename:"),"w+")
ff.write(s)
ff.close()
阅读全部 | 2019年2月28日 17:53
// Wrapper of C-language FILE struct -*- C++ -*-
// Copyright (C) 2000-2014 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3, or (at your option)
// any later version.
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
......................
阅读全部 | 2019年2月18日 10:21
// Iostreams base classes -*- C++ -*-
// Copyright (C) 1997-2014 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3, or (at your option)
// any later version.
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
......................
阅读全部 | 2019年2月18日 10:17
import urllib2
f=urllib2.open(raw_input("Please enter the URL:"))
s=f.read()
ff=open(raw_input("Please enter the filename:"),"w+")
ff.write(s)
ff.close()
阅读全部 | 2019年2月14日 11:56
#include<iostream>
using namespace std;
class Stackexception{
char* why;
public:
Stackexception(char* p):why(p){}
char* reason()
{
return why;
}
};
template<typename T>
......................
阅读全部 | 2019年2月5日 11:27
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int get()
{
int i=getchar();
return i;
}//get
void bye()
{
printf("bye");
exit(0);
......................
阅读全部 | 2019年1月27日 18:06
/**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#ifndef _INC_STRING
#define _INC_STRING
#include <crtdefs.h>
#ifdef __cplusplus
extern "C" {
......................
阅读全部 | 2018年12月16日 15:43
#include<iostream>
#include<ctime>
#include<cstdlib>
#include<cstdio>
using namespace std;
int getrand(int i)
{
srand(time(0));
return rand()%i;
}
int main(int is,char *j[])
{
......................
阅读全部 | 2018年12月16日 15:36