#!/usr/bin/env python
#-*-coding:utf-8-*-
import os
import pandas as pd
import calendar
import datetime
import MySQLdb
import os, sys, re,string
import time, tarfile,getopt
import redis
num = open('num.txt','a')
for i in range(1,101):
print i
print >> num , i
num.close()
转载于:https://blog.51cto.com/6226001001/1898170