码迷,mamicode.com
首页 >  
搜索关键字:tried to present    ( 1837个结果
完成个人中心—导航标签
1 @app.route('/usercenter//') 2 @loginFirst 3 def usercenter(user_id,tag): 4 user = User.query.filter(User.id==user_id).first 5 context ={ 6 'user':us... ...
分类:其他好文   时间:2017-12-15 22:31:40    阅读次数:126
12.14
新页面user.html,用 实现标签页导航。 Home Profile Messages 全部问答 全部评论 个人信息 user.html继承base.html。重写title,head,main块.将上述放在main块中.定义新的块user。 {% extends 'base.html' %} ... ...
分类:其他好文   时间:2017-12-14 18:06:04    阅读次数:555
Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization.
问题描述: 在VMware里克隆或者复制出来的CentOS Linux,开机执行命令:ifconfig...没有看到eth0网卡。然后重启网卡又报以下错误: Bringing up interface eth0: Device eth0 does not seem to be present,del ...
分类:其他好文   时间:2017-12-13 01:55:10    阅读次数:149
[LeetCode] Sentence Similarity 句子相似度
Given two sentences words1, words2 (each represented as an array of strings), and a list of similar word pairs pairs, determine if two sentences are s ...
分类:其他好文   时间:2017-12-10 11:10:32    阅读次数:205
十大算法
本文内容取自 网页 一、1946 蒙特卡洛方法 [1946: John von Neumann, Stan Ulam, and Nick Metropolis, all at the Los Alamos Scientific Laboratory, cook up the Metropolis a ...
分类:编程语言   时间:2017-12-08 20:57:27    阅读次数:201
urllib 模块 - module urllib
1 urllib 模块 - module urllib 2 3 获取 web 页面, 4 html = urllib.request.urlopen("http://www.zzyzz.top/") 5 html2 = urllib.request.Request("http://www.zzyzz... ...
分类:Web程序   时间:2017-12-08 18:32:44    阅读次数:251
Python内置函数(19)-slice
官方文档 3.对应切片的3个属性start、stop、step,slice函数也有3个对应的参数start、stop、step,其值会直接赋给切片对象的start、stop、step ...
分类:编程语言   时间:2017-12-05 14:28:24    阅读次数:267
循环遍历listview 控件中Subitems 值
I was wanting to be able to iterate through each of my ListViews sub items and get the value from each. I have tried various things but am finding it ...
分类:其他好文   时间:2017-12-05 00:57:14    阅读次数:154
Optional int parameter 'time' is present but cannot be translated into a null value due to being decla
今天在操作redis的时候报了这个错:Optional int parameter 'time' is present but cannot be translated into a null value due to being decla 这句话意思:参数time存在,但是无法将其转为为null ...
分类:其他好文   时间:2017-12-03 19:50:34    阅读次数:127
Codeforces 585E. Present for Vitalik the Philatelist(容斥)
好题!学习了好多 写法①: 先求出gcd不为1的集合的数量,显然我们可以从大到小枚举计算每种gcd的方案(其实也是容斥),或者可以直接枚举gcd然后容斥(比如最大值是6就用2^cnt[2]-1+3^cnt[3]-1-(6^cnt[6]-1),cnt[x]表示x的倍数的个数),用容斥计算的话可以发现系 ...
分类:其他好文   时间:2017-12-03 13:01:06    阅读次数:184
1837条   上一页 1 ... 76 77 78 79 80 ... 184 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!