老司机们,没时间了,直接贴代码:

视图:

<!DOCTYPE html>
<html>
<meta charset="utf-8" />
<title>签到</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="yes" name="apple-touch-fullscreen">
<meta content="telephone=no,email=no" name="format-detection">
<link rel="stylesheet" type="text/css" href="../../css/qiandao.css">
<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/1.7.1/jquery.min.js"></script>
<style type="text/css">
.login-screen, .popup{position: absolute;left: 0;top: 0;width: 100%;height: 100%;z-index: 10400;background: #fff;box-sizing: border-box;display: none;overflow: auto;}
.bar-nav{top: 0;}
.bar{position: absolute;right: 0;left: 0;z-index: 10;height: 2.2rem;padding-right: .5rem;padding-left: .5rem;background-color: #f7f7f8;-webkit-backface-visibility: hidden;backface-visibility: hidden;}
.bar .icon{position: relative;z-index: 20;padding: .5rem .1rem;font-size: 1rem;line-height: 1.2rem;}
.pull-right{float: right;}
.icon{font-family: iconfont-sm!important;font-style: normal;display: inline-block;vertical-align: middle;background-size: 100% auto;background-position: center;-webkit-font-smoothing: antialiased;-webkit-text-stroke-width: .2px;-moz-osx-font-smoothing: grayscale;}
.pull-right{float: right;}
.icon-down:before{content: "\e611";}
.content-block{margin: 1.75rem 0;padding: 0 .75rem;color: #6d6d72;}
.bbj{background: #fff;padding: 16px 16px;border-radius: 5px;border: 1px solid #E0D2D2;}
.pre-wrap{width: 200px;height: 120px;margin: 50px auto 0;border: 2px solid #F00;border-radius: 4px;position: relative;}
.tbox_1{background: url('../../image/qiandao_bg.jpg') no-repeat center 0;}
.tbox_1 li:nth-of-type(2) a{background:#72A4BB;}
.box{background-color: #72A4BB;}
.lp-list-box .lp-score-list .num-1::before, .lp-list-box .lp-score-list .num-2::before, .lp-list-box .lp-score-list .num-3::before{background-color: #72A4BB;font-size: .1375rem;}
#commission2{font-size: 12px;position: absolute;top: 110px;right: 13px;padding: 3px 8px;line-height: 1;border-radius: 10px;background-color: #fff;color: #72A4BB;border: 1px solid #72A4BB;text-align: center;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;}

.calendar{margin-top: 0.5rem;height: auto;overflow: hidden;}
.calendar .title{height: 2rem;padding: 0 0.5rem;line-height: 2rem;font-size: 0.8rem;background: #fff;color: #24b2f4;border-bottom: 1px solid #e9e9e9;}
.calendar .title .date{width: auto;float: left;}
.select-date{border: 0;background: none;color: #24b2f4;appearance: none;-moz-appearance: none;-webkit-appearance: none;font-size: 0.8rem;}
.select-date option{border: 0;background: none;color: #000;}
.calendar .body{height: auto;background: #fff;padding: 0.5rem;width: 100%;overflow: hidden;}
.calendar .body .week{border: 1px solid #e9e9e9;min-height: 2.5rem;overflow: hidden;border-bottom: none;}
.calendar .body .week .day:first-child{border: none;}
.calendar .body .week .day{height: 2.5rem;width: 14.28%;float: left;border-left: 1px solid #e9e9e9;color: #777;font-size: 0.8rem;position: relative;overflow: hidden;}
.calendar .body .mon .day .num{display: block;text-align: center;height: 2.5rem;line-height: 2.5rem;padding-left: 0;}
.calendar .body .week .day .num{height: 1.7rem;padding-left: 0.3rem;}
*{box-sizing: border-box;-webkit-tap-highlight-color: transparent;-webkit-touch-callout: none;margin: 0;padding: 0;}
.calendar .title{height: 2rem;padding: 0 0.5rem;line-height: 2rem;font-size: 0.8rem;background: #fff;color: #24b2f4;border-bottom: 1px solid #e9e9e9;}
.calendar .title .date{width: auto;float: left;}
.select-date{border: 0;background: none;color: #24b2f4;appearance: none;-moz-appearance: none;-webkit-appearance: none;font-size: 0.8rem;}
.select-date option{border: 0;background: none;color: #000;}
.calendar .body .week .day .signed{position: absolute;top: 0.3rem;right: 1.2rem;height: 0.8rem;width: 1rem;line-height: 0.8rem;color: #24b2f4;font-size: 1.1rem;}
.calendar .body .week .day .signed .u{bottom: -1.3rem;font-size: 0.5rem;position: absolute;right: -1rem;}
.calendar .body .week .day .signed img{width: 100%;margin-top: 1rem;}

#audio_btn{position: fixed;right: 10px;top: 18px;z-index: 200;display: none;width: 50px;height: 50px;background-repeat: no-repeat;cursor: pointer;}
.off{background: url('../../image/music_off.png');background-size: 30px 30px;}
.play_yinfu{background-image: url(../../image/music.gif);background-repeat: no-repeat;background-position: center center;background-size: 60px 60px;}

</style>
</head>
<body onselectstart="return true;" ondragstart="return false;">
<div class="container container-fill">
<span id="commission2" onclick="demotx()">我要提现</span>
<header>
<ul class="tbox tbox_1">
<li><p class="pre"><label><?php echo $jifen_yue['integral'];?></label>可用积分</p></li>
<li><a class ="qian" href="javascript:void(0)" ><label class ="qiandao">未签到</label></a></li>
<li><p class="pre"><label><?php echo $jifen_yue['balance'];?></label>可用余额</p></li>
</ul>
<nav class="nav_integral">
<ul class="box">
<li><a href="./index.php?i=1&c=entry&do=Zong&m=wei_qian"><span class="icons icons_prize">&nbsp;</span><label>总排行榜</label></a></li>
<li><a href="./index.php?i=1&c=entry&do=my&m=wei_qian"><span class="icons icons_luck">&nbsp;</span><label>签到记录</label></a></li>
<li onclick="demo2()"><a href="#"><span class="icons icons_record">&nbsp;</span><label>规则说明</label></a></li>
<li><a href="./index.php?i=1&c=activity&a=token&do=display&"><span class="icons icons_teach">&nbsp;</span><label>积分兑换</label></a></li>
</ul>
</nav>
</header>
<div class="popup popup-about" style="display: none; background: transparent;" id="gbpup" onclick="demo3()">
<header class="bar bar-nav" style="background: transparent;"><a class="icon icon-down pull-right close-popup" style="color: #fff;"></a></header>
<div class="content-block">
<div class="bbj"><h2 class="yahei" id="newsTitle" style="margin: 0px; padding: 0px; font-size: 24px; font-family: 'Microsoft YaHei', SimHei; color: rgb(51, 51, 51); line-height: 35px; text-align: center; white-space: normal; background-color: rgb(255, 255, 255);">签到领积分规则</h2><p><br/></p><p>1连续签到2次额外加2分。</p><p>2连续签到5次额外加5分。</p><p>3连续签到7次额外加7分。</p><p>4每签到一次送1积分,和0.01元。</p>
</div>
</div>
</div>
<div class ="calendar">
<div class="title">
<span class="date">
<div style="float: left;"><img src="../../image/tp.png" style="width: 20px;"></div>
<select id="date" class="select-date" name="cdate">
<?php
$year = date("Y");
$month= date("m");
$cval = $year."-".$month;
$cstr = $year."年".$month."月";

?>
<option value="<?php echo $cval; ?>" selected><?php echo $cstr; ?></option></select>
</span>
</div>

<div class="body" id="calendar">
<div class="week mon">
<nav class="day" data-day="" data-month="2" data-date="" data-signed=""><p class="num">周日</p></nav>
<nav class="day" data-day="" data-month="2" data-date="" data-signed=""><p class="num">周一</p></nav>
<nav class="day" data-day="" data-month="2" data-date="" data-signed=""><p class="num">周二</p></nav>
<nav class="day" data-day="" data-month="2" data-date="" data-signed=""><p class="num">周三</p></nav>
<nav class="day" data-day="" data-month="2" data-date="" data-signed=""><p class="num">周四</p></nav>
<nav class="day" data-day="" data-month="2" data-date="" data-signed=""><p class="num">周五</p></nav>
<nav class="day" data-day="" data-month="2" data-date="" data-signed=""><p class="num">周六</p></nav>
</div>

<?php
$strhtml = '';
$weekcounts = 0;
foreach (get_weekinfo($cval) as $key => $val ) {
echo '<div class="week">';
for($i1 = 0; $i1 < 7; $i1 ++) {
$style = "day";
if(substr($val[$i1],5,2) < $month or substr($val[$i1],5,2) > $month){
$strhtml='<nav class="'.$style.'" data-day="" data-date="" data-signed=""><p class="num"></p>';
}else{
$strhtml= '<nav class="'.$style.'" data-day="" data-month="'.substr($val[$i1],8,2).'" data-date="" data-signed=""><p class="num">'.substr($val[$i1],8,2).'</p>';}
for($i2 = 0; $i2 < count($yiqian); $i2 ++) {
if($yiqian[$i2]['inputtime']==$val[$i1]){
$strhtml.= '<div class="signed"><img src="../addons/wei_qian/template/style/images/q.png"><div class="u">已签</div></div>';}
}
$weekcounts++;
$strhtml.= '</nav>';
echo $strhtml;
}
echo '</div>';
}
?>

</div>
<div class="title" style="margin-top: 0.5rem;">
<div style="float: left;"><img src="../../image/tp.png" style="width: 65%; margin-top: 0.5rem;"></div>
<marquee id="affiche" align="left" behavior="scroll" direction="left" hspace="50" vspace="20" loop="-1" scrollamount="5" scrolldelay="100" style="float: left; width: 90%; margin: 20px 50px;">公告</marquee>
</div>
</div>
</div>

<style>
.lp-list-box{margin-bottom: 0;}
.lp-box-shadow{box-shadow: 0 1px 2px rgba(220,220,220,.4);}
.lp-box{padding: 0 .75rem;background-color: #fff;}
.box1{overflow: hidden;margin: 0 0 .625rem;padding: 0 .6875rem;background: #fff;}
.box1, .nav{box-shadow: 0 .0625rem .125rem rgba(0,0,0,.15);}
.box1, .box1 .tit, .label{display: block;}
.lp-list-box .action-list{margin-top: 0;}
.action-list{margin: 1.5625rem 0 0;}
li, ul{list-style: none;}
.lp-list-box .action-list li{padding: .5rem 0;margin: 0 0 .375rem;}
.action-list li{position: relative;display: -webkit-box;display: -webkit-flex;display: -ms-flexbox;display: flex;padding: 0 0 .8125rem;margin: 0 0 .8125rem;}
.action-list .content{display: block;overflow: hidden;color: #333;-webkit-box-flex: 1;-webkit-flex: 1;-ms-flex: 1;flex: 1;width: 100%;}
a, a:hover{text-decoration: none;}
.lp-list-box .lp-score-list .num-1, .lp-list-box .lp-score-list .num-2, .lp-list-box .lp-score-list .num-3{color: #fff;border-radius: 50%;min-width: 0;margin-top: .75rem;margin-right: .625rem;margin-left: .3125rem;width: 1.5rem;height: 1.5rem;line-height: 1.5rem;padding: 0;position: relative;font-size: 1.125rem;z-index: 3;}
.lp-list-box .action-list .num{<!-- width: 25px;padding-right: 2px;--> height: 100%;}
.action-list .num{float: left;min-width: 2.125rem;line-height: 3.125rem;font-size: .9375rem;color: #828282;text-align: center;white-space: nowrap;<!-- font-style: italic;-->}
.lp-list-box .lp-score-list .num-1::before, .lp-list-box .lp-score-list .num-2::before, .lp-list-box .lp-score-list .num-3::before{content: "";position: absolute;width: 100%;height: 100%;left: 1px;top: 0;border-radius: 50%;z-index: -1;}
.action-list .user{overflow: hidden;}
.lp-list-box .action-list .user .avatar{width: 3rem;height: 3rem;}
.action-list .user .avatar{position: relative;float: left;width: 3.125rem;height: 3.125rem;margin: 0 .875rem 0 0;}
.action-list .user .avatar img{display: block;width: 100%;height: 100%;border-radius: 50%;}
.lp-list-box .action-list .user .txt{font-size: 1rem;color: #333;}
.action-list .user .txt{position: relative;display: block;padding: .5rem 0 0;font-size: 1.125rem;line-height: 1.2em;}
.action-list .user .txt, .ar-nav-tit, .link-box .txt, .star-banner .user .name, .star-banner footer span, .vs-box .user .name{text-overflow: ellipsis;white-space: nowrap;overflow: hidden;}
.lp-list-box .action-list .user .step{color: #939393;}
.action-list .user .step{display: block;margin: .5rem 0 0;font-size: .75rem;color: #828282;line-height: 1.2em;}
.action-list .action{position: relative;overflow: hidden;width: 4rem;font-size: .625rem;color: #929292;display: -webkit-box;display: -webkit-flex;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;-webkit-align-items: center;align-items: center;-webkit-box-pack: center;-ms-flex-pack: center;-webkit-justify-content: center;justify-content: center;}
a, a:hover{text-decoration: none;}
.action-list .action{position: relative;overflow: hidden;width: 4rem;font-size: .625rem;color: #929292;display: -webkit-box;display: -webkit-flex;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;-webkit-align-items: center;align-items: center;-webkit-box-pack: center;-ms-flex-pack: center;-webkit-justify-content: center;justify-content: center;}
.action-list .action.like .icon, .action-list .action.liked .icon{background-position: -3.125rem 0;width: 1.6rem;height: 1.5rem;}
.action-list .action .icon{position: relative;display: block;margin: 0 auto .3125rem;}
.lp-box .icon{position: absolute;right: 0;bottom: 0;}
.box1 .icon{position: absolute;right: 0;bottom: 0;width: .9375rem;height: .9375rem;background: url(https://h5.sinaimg.cn/weibocn/v6/img/lib/icons.a5c1305b.svg) no-repeat;background-size: 6.875rem 10.3125rem;}
.action-list .action span{display: block;text-align: center;}
</style>
<section class="box1 action-list-box lp-box lp-box-shadow lp-list-box">
<ul class="action-list lp-score-list">
<?php for($i3 = 0; $i3 < count($paihang); $i3 ++) { ?>
<li>
<a class="content" href="#">
<span class="num num-1"><?php echo($i3+1); ?></span>
<div class="user">
<p class="avatar">
<img src="<?php echo $paihang[$i3]['avater'];?>" alt=""></p>
<div class="info">
<p class="txt"><?php echo $paihang[$i3]['name'];?></p>
<span class="step noUnit"><?php echo date("Y-m-d H:i:s",$paihang[$i3]['lasttime']);?>&nbsp;&nbsp;&nbsp;
</span>
</div>
</div>
</a>
<a class="action like" href="javascript:;" data-oid="1022:230746_1_550_3574_5684117583_steps">
<p class="wrapper">
<!-- <i class="icon"></i> -->
<i class="iconimg iconimg-s"><img width="23" height="23" src="../../image/cs.png" data-node="cMesImg"></i>
<span><?php echo $paihang[$i3]['number'];?></span></p>
</a>
</li>
<?PHP } ?>
</ul>
</section>

<div class="video_exist play_yinfu" id="audio_btn" style="display: block;">
<div id="yinfu" class="rotate"></div>
<audio preload="auto" autoplay="autoplay" id="media" src="http://wx.zc91.cn/attachment/audios/1/2017/07/Pfy7RoT5R8fwE787AVwC5vZ5Ga1157.mp3" loop=""></audio>
</div>

</body></html>

<script>
$(".qian").on('click', function (e)
{ e.preventDefault();
$.post('./index.php?m=Home&c=Index&a=cunchu', { p: 1 }, function(data){
location.reload();
$('.qiandao').html(data);

})
});
function demo(){  window.location.href="./index.php?i=1&c=entry&type=uids&do=List&m=wei_qian";}
function demotx(){  window.location.href="./index.php?i=1&c=entry&type=uids&do=Tixian&m=wei_qian";}
function demo2(){ $("#gbpup").addClass("modal-in"); $("#gbpup").show();}
function demo3(){ $("#gbpup").hide();$("#gbpup").removeClass("modal-in");}

var x = document.getElementById("media");
$("#yinfu").click(function(){
$(this).toggleClass("rotate"); //控制音乐图标 自转或暂停
if($(this).hasClass("rotate")){ x.play();}
else{x.pause();}
})
$("#audio_btn").click(function(){ $(this).toggleClass("play_yinfu");});
</script>

控制器:

public function qiandao(){//只管输出数据
$name = 'user01';//现在是模拟,正常通过session去获取用户名
$res1 = M('record')->where(array('name'=>$name))->select();
//dump($res1);
$res2 = M('chart')->order("number desc")->select();
//dump($res2);
$res3 = M('chart')->where(array('name'=>$name))->find();
//dump($res3);
$this->assign('yiqian',$res1);
$this->assign('paihang',$res2);
$this->assign('jifen_yue',$res3);
$this->display();
}

public function cunchu(){//更新或新建数据
$name = 'user01';
$time1 = date("Y-m-d");//今天
$time2 = date("Y-m-d",strtotime("-1 day"));//昨天
$time3 = time();//今天详细时间,包括时分秒
$res1 = M('record')->where(array('name'=>$name))->order("id desc")->limit(1)->select();
$res2 = M('conrecord')->where(array('name'=>$name))->select();
if( ISSET($_POST) and $_POST['p']==1){//判断是否接收到post过来的参数
if($res1[0]['inputtime']==$time1){//判断今天是否已经签到,如果已经签到return空
return;
}else{//如果今天没签到,开始更新几张表的数据
$data1['name'] = $name;
$data1['inputtime'] = $time1;
M('record')->add($data1);//record记录表添加完毕
if($res2[0]['endtime']==$time2){//判断昨天是否已经签到,如果昨天签过今天再签就属于连续签到,更新conrecord连续签到表
$data2['endtime'] = $time1;
M('conrecord')->where(array('name'=>$name))->save($data2);
M('conrecord')->where(array('name'=>$name))->setInc('connumber',1);

}else{//昨天没签过说明今天是连续签到的第一天
$data3['firsttime'] = $time1;
$data3['endtime'] = $time1;
$data3['connumber'] = 1;
$user1 = M('conrecord')->where(array('name'=>$name))->find();
if($user1){//查一下用户是否存在,如果存在更新数据,如果不存在新建一条记录
M('conrecord')->where(array('name'=>$name))->save($data3);
}else{
$data4['firsttime'] = $time1;
$data4['endtime'] = $time1;
$data4['connumber'] = 1;
$data4['name'] = $name;
M('conrecord')->add($data4);
}

}

//对chart表进行更新操作
$data6['integral'] = 1;
$data6['balance'] = 0.01;
$data6['number'] = 1;
$data6['lasttime'] = $time3;
$data6['name'] = $name;
//头像注意添加进来
$user3 = M('chart')->where(array('name'=>$name))->find();
if(!$user3){//查一下用户是否存在,如果不存在新建一条记录
M('chart')->add($data6);
}else{//如果存在更新数据
$user2 = M('conrecord')->where(array('name'=>$name))->find();
if($user2['connumber']==2){//针对不同的连续签到次数,给予额外的积分
M('chart')->where(array('name'=>$name))->setInc('integral',3);
}else if($user2['connumber']==5){
M('chart')->where(array('name'=>$name))->setInc('integral',6);
}else if($user2['connumber']==7){
M('chart')->where(array('name'=>$name))->setInc('integral',8);
}else{
M('chart')->where(array('name'=>$name))->setInc('integral',1);
}
M('chart')->where(array('name'=>$name))->setInc('balance',0.01);
M('chart')->where(array('name'=>$name))->setInc('number',1);
$data5['lasttime'] = $time3;
M('chart')->where(array('name'=>$name))->save($data5);
}

}
$data = '已签到';
$this->ajaxReturn($data);

}

}

公共函数:(视图中会用到)

//生成时间数组,包括月内的每个星期,星期内的七天
function get_weekinfo($month){
$weekinfo = array();
$end_date = date('d',strtotime($month.' +1 month -1 day'));
for ($i=1; $i <$end_date ; $i=$i+7) {
$w = date('N',strtotime($month.'-'.$i));

$weekinfo[] = array(date('Y-m-d',strtotime($month.'-'.$i.' -'.($w).' days')),
date('Y-m-d',strtotime($month.'-'.$i.' -'.($w-1).' days')),
date('Y-m-d',strtotime($month.'-'.$i.' -'.($w-2).' days')),
date('Y-m-d',strtotime($month.'-'.$i.' -'.($w-3).' days')),
date('Y-m-d',strtotime($month.'-'.$i.' -'.($w-4).' days')),
date('Y-m-d',strtotime($month.'-'.$i.' -'.($w-5).' days')),
date('Y-m-d',strtotime($month.'-'.$i.' -'.($w-6).' days')));
}
return $weekinfo;
}

thinkphp实现简易签到的更多相关文章

  1. thinkphp学习简易教程(二) thinkphp连接读取MySQL数据库

    首先, 在本地服务器中新建项目APP,依据第一讲中的步骤配置好thinkphp,这里为了测试方便,不分前台和后台模块,统一把模块路径设为'./APP/'. 1.新建数据库myapp,以及数据库表thi ...

  2. thinkphp学习简易教程(一) thinkphp创建项目

    1.在本地服务器根目录下创建项目目录,如命名为app: 2.把thinkphp的压缩包解压到与项目同级目录下,如app是放在目录APP下面,即项目目录路径为'APP/app/',则thinkphp应解 ...

  3. 一个类似ThinkPHP的Node.js框架——QuickNode

    QuickNode Node.js从QuickNode开始,让restful接口开发更简单! PHP的MVC 作为一名曾经的PHP开发者,我也有过三年多的thinkphp使用经验,那是我学习PHP接触 ...

  4. thinkphp签到的实现代码

    thinkphp签到的实现代码 数据表 1 2 3 4 5 6 7 8 9 10 11 CREATE TABLE `members_sign` (   `id` int(11) unsigned NO ...

  5. 简易微信小程序签到功能

    一.效果图 点击签到后 二.数据库 用一张数据表存用户签到的信息,每次用户签到都会往表中添加一条记录了用户id和签到日期的数据,如下图 三.后端 后端写两个接口,一个用于查询用户今日是否签到和签到记录 ...

  6. thinkphp简易搜索

    需求: 用户输入关键词,选项卡的每个选项输出一个分类的列表内容,分类有文章.ppt.学习. 实现过程: 视图中用户输入的关键词post给控制器,控制器对这个关键词做三次模糊查询处理,因为是三个分类对应 ...

  7. selected 刷新页面后selected选中的值保持不表(thinkphp 从控制器assign 传值到js)

    昨晚解决select 刷新页面以后选择的值保持不变,要想让seleted不变,有两种思路, 1,在提交表单的时候,将所选择的option的属性设为checked . 2.将option的value或者 ...

  8. ThinkPHP自动获取关键词(调用第三方插件)

    ThinkPHP自动获取关键词调用在线discuz词库 先按照下图路径放好插件 方法如下 /** * 自动获取关键词(调用第三方插件) * @return [type] [description] * ...

  9. 分享一个Cnblogs简易APP

    最近在学习Android app的开发,俗话说万事开头难,本人也不例外.计算机编程是属于一门要求动手能力和动脑能力都很强的学科,相信很多人都会有这样的经历,看得懂不去用,过不了几天也就忘记了.因而,在 ...

随机推荐

  1. 第 2 章 Python 语言入⻔

    目录 2.1低而长的学习曲线 2.2Python的优势 2.3在你的计算机中安装Python 2.4如何运行Python程序 2.5文本编辑器 2.6寻求帮助 Python语言是一种流行的编程语言,在 ...

  2. 【机器学习】推荐系统、SVD分解降维

    推荐系统: 1.基于内容的实现:KNN等 2.基于协同滤波(CF)实现:SVD → pLSA(从LSA发展而来,由SVD实现).LDA.GDBT SVD算是比较老的方法,后期演进的主题模型主要是pLS ...

  3. PLSQL Developer 直接用ip访问指定数据库

  4. 【leetcode 106. 从中序与后序遍历序列构造二叉树】解题报告

    前往 中序,后序遍历构造二叉树, 中序,前序遍历构造二叉树 TreeNode* build(vector<int>& inorder, int l1, int r1, vector ...

  5. [CentOS7] 使用磁盘分割建立swap

    声明:本文主要总结自:鸟哥的Linux私房菜-第七章.Linux 磁碟與檔案系統管理,如有侵权,请通知博主 通过 vim /etc/fstab 使该新建的swap分区每次开机都自己挂载 至此,已经完成 ...

  6. Spark Checkpoint 概述

    有时候,Transformation 的 RDD 非常多或者具体 Transformation 产生的 RDD 本身计算特别复杂和耗时,此时我们必须考虑对计算结果数据进行持久化.与 persist 不 ...

  7. VS2012打包部署教程

    前言 通常我们只是写一些系统,然后想要运行功能的时候就打开代码点击启动,这样只适用于开发人员或者局部开发人员这样做,软件开发的大多数意义上就是拿出开发的软件让用户放心的去点.用户无需知道代码,无需知道 ...

  8. 图解 SSH上传安装tomcat

    安装步骤: 1.SSH上传压缩包 2.[root@localhost soft]# tar  -zxvf apache-tomcat-7.0.61.tar.gz    //解压安装 解压结果 3.[r ...

  9. 洛谷P3792 由乃与大母神原型和偶像崇拜

    P3792 由乃与大母神原型和偶像崇拜 题目背景 由乃最近没事干,去研究轻拍学去了 就是一个叫做flip flappers,轻拍翻转小膜女的番 然后研究的过程中她看到了一个叫做大母神原型的东西 大母神 ...

  10. python 变量,输入,输出

    目录 2.0 注释 2.1 变量 2.2 变量名命名规范 2.3 常量 2.4 输入 input 2.5 输出 print 2.6 关于开发工具 2.0 注释 python的注释方法 "&q ...