摘要:
#!user/bin/python 3.5.2 #-*- encoding=utf-8 -*- import requests import os url=input('please input a url:') print ('hold on several seconds') if url[0:4]!="http": url='http://'+url kv={'user-ag... 阅读全文
摘要:
# multiply def multi(a): s=1 for i in a: s*=i return s def inp(): a=input('please input nums(split with comma):') return a if __name__=='__main__': try : a=in... 阅读全文
摘要:
#the factorial of n def fac1(n): s=1 for i in range(1,n+1): s*=i return s def fac2(n): if n==1: return 1 else : return n*fac2(n-1) def inputnum(): a=in... 阅读全文