#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)
......................
阅读全部
|
cstdio
贴于 2019年3月7日 18:14
hide
bbsi
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style type="text/css">
.msyhbd{
font-weight:bold;
font-family:"微软雅黑","SimSun";
}
.msyh{
font-family:"微软雅黑","SimSun";
......................
阅读全部
|
mimijilu
贴于 2019年3月7日 12:01
hide
bbsi
/**
* @Title:getPayparams
* @Description:根据支付方式获取相应的支付参数
* @param orderMain
* @param payType
* @param request
* @return
* @throws Exception Result<Map<String,Object>> 返回类型
*/
public Result<Map<String, Object>> getPayparams(OrderMain orderMain, String payType, HttpServletRequest request) throws Exception{
Result<Map<String, Object>> result = new Result<Map<String, Object>>();
switch (payType) {
......................
阅读全部
|
glj188350035
贴于 2019年3月4日 11:44
hide
bbsi
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()
阅读全部
|
cstdio
贴于 2019年2月28日 17:53
hide
bbsi
#coding=utf-8
from __future__ import print_function
#利用泰勒公式计算星期几
#w=y+[y/4]+[c/4]-2c+[26(m+1)/10]+d-1
def getweek(year,month,day):
#w #星期
#c #世纪-1 YYYY的头两位
#y #年份 YYYY的后两位
#m #月份 >=3 1月 2月看成上年的13月 14月
#d=day #日
if month>=3:
......................
阅读全部
|
wp231957
贴于 2019年2月27日 15:05
hide
bbsi
from __future__ import print_function
import socket
import sys
import os
filename=sys.argv[1]
txt=open(filename,"rb+")
filesize=os.path.getsize(filename)
i=1
while i<=filesize:
data=txt.read(1)
print ("%4s"%str(hex(ord(data)))+' ',end='')
......................
阅读全部
|
wp231957
贴于 2019年2月26日 14:00
hide
bbsi
#include<math.h>
#include<stdio.h>
main()
{
int a=1,b=1,c=1;
float i=0.0,d=0.0001;
while(fabs(1./a)>=fabs(d))
{
i=i+1/a;
if(b%2!=0)
c=-1;
else c=1;
......................
阅读全部
|
单维坤
贴于 2019年2月24日 22:52
hide
bbsi
#include<stdio.h>
#include<string.h>
#include<math.h>
#define EPSILON 0.1
int main()
{
double num1;
int flag,v,w,x,y,z,len;
char a[20]= {0};
double b[20]= {0};
for(int i=0; i<20; i++)
{
......................
阅读全部
|
艾莉莎
贴于 2019年2月23日 15:39
hide
bbsi
// 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
......................
阅读全部
|
cstdio
贴于 2019年2月18日 10:21
hide
bbsi
// 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
......................
阅读全部
|
cstdio
贴于 2019年2月18日 10:17
hide
bbsi