有三元运算符可以很好的代替if else简单语句 但是在使用的时候发现 与 return使用的时候 需要用这种形式 错误形式: $a ? return 1 ? return 0; 正确形式: return $a ? 1 : 0; 学习源头 https://zhidao.baidu.com/quest ...
分类:
其他好文 时间:
2018-05-03 19:31:28
阅读次数:
194
1)上传本地代码到TFS a.Generate Git Credentials,即创建git账户密码 b)上传本地代码 2)git 分支 也可以参考此文:Git 在团队中的最佳实践--如何正确使用Git Flow 作者:khowarizmi链接:https://www.zhihu.com/quest ...
分类:
Web程序 时间:
2018-04-08 10:50:05
阅读次数:
280
蓝桥杯java历年真题及答案整理(闭关一个月,呕心沥血整理出来的) 1 算法是这样的,如果给定N个不同字符,将这N个字符全排列,最终的结果将会是N!种。如:给定 A、B、C三个不同的字符,则结果为:ABC、ACB、BAC、BCA、CAB、CBA一共3!=3 2=6种情况。 package Quest ...
分类:
编程语言 时间:
2018-03-30 21:44:57
阅读次数:
148
【CF235C】Cyclical Quest(后缀自动机) 题面 "洛谷" 题解 大致翻译: 给定一个串 然后若干组询问 每次也给定一个串 这个串可以旋转(就是把最后一位丢到最前面这样子) 问这个串以及其旋转的串在给定的串中出现了多少次 显然,串可以旋转,那么考虑在后面再接一份就行了 匹配的话就是后 ...
分类:
其他好文 时间:
2018-02-24 23:10:43
阅读次数:
245
In our daily life we often use 233 to express our feelings. Actually, we may say 2333, 23333, or 233333 ... in the same meaning. And here is the quest ...
分类:
其他好文 时间:
2018-01-12 22:39:19
阅读次数:
239
随着一个网站的业务不断扩展,数据不断增加,数据库的压力也会越来越大,对数据库或者SQL的基本优化可能达不到最终的效果,我们可以采用读写分离的策略来改变现状。读写分离现在被大量应用于很多大型网站,这个技术也不足为奇了。ebay就做得非常好。ebay用的是oracle,听说是用Quest Share P ...
分类:
数据库 时间:
2017-12-14 21:13:47
阅读次数:
209
定义评论的视图函数@app.route('/comment/',methods=['POST'])def comment():读取前端页面数据,保存到数据库中 用',methods=['GET','POST']) def detail(question_id): quest=Question.que... ...
分类:
其他好文 时间:
2017-12-08 20:43:04
阅读次数:
161
主PY文件写视图函数,带id参数。 @app.route('/detail/<question_id>')def detail(question_id): quest = return render_template('detail.html', ques = quest) @app.route(' ...
分类:
其他好文 时间:
2017-12-07 21:20:52
阅读次数:
203
1.主PY文件写视图函数,带id参数。 @app.route('/detail/<question_id>')def detail(question_id): quest = return render_template('detail.html', ques = quest) 2.首页标题的标签做 ...
分类:
其他好文 时间:
2017-12-07 21:09:57
阅读次数:
184
主PY文件写视图函数,带id参数。 @app.route('/detail/<question_id>')def detail(question_id): quest = return render_template('detail.html', ques = quest) 首页标题的标签做带参数的 ...
分类:
其他好文 时间:
2017-12-07 20:48:58
阅读次数:
120