zhenggaoxiong
摘要: Jessica's Reading Problem Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 17562 Accepted: 6099 Description Jessica's a very lovely girl woo 阅读全文
posted @ 2018-10-25 11:08 zhenggaoxiong 阅读(137) 评论(0) 推荐(0) 编辑
摘要: DNA sequence Time Limit: 15000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4217 Accepted Submission(s): 2020 P 阅读全文
posted @ 2018-10-23 22:50 zhenggaoxiong 阅读(241) 评论(0) 推荐(1) 编辑
摘要: A计划 Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 30433 Accepted Submission(s): 7627 Problem De 阅读全文
posted @ 2018-10-19 16:06 zhenggaoxiong 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 1755. Cake Time limit: 0.5 secondMemory limit: 64 MB Karlsson and Little Boy have found a cake in the fridge. It is written on the box that the cake c 阅读全文
posted @ 2018-09-30 10:55 zhenggaoxiong 阅读(160) 评论(0) 推荐(0) 编辑
摘要: css代码改完了,但是查看网页源代码css的内容还是很久之前的,根本没有更新 解决方法: 1.浏览器缓存。使用ctrl+F5刷新一下页面 2. 3. from datetime import timedelta # 设置静态文件缓存过期时间 app.config['SEND_FILE_MAX_AGE 阅读全文
posted @ 2018-08-12 23:08 zhenggaoxiong 阅读(1461) 评论(0) 推荐(1) 编辑
摘要: 解决方法:pip3 install xxx --user 阅读全文
posted @ 2018-08-03 11:22 zhenggaoxiong 阅读(4891) 评论(1) 推荐(1) 编辑
摘要: To install requests module on Debian/Ubuntu: $ sudo apt-get install python-requests pycharm配置版本 file->settings->Project->Project Interpreter 点击右边小齿轮-> 阅读全文
posted @ 2018-08-01 11:12 zhenggaoxiong 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 1.函数作用域LEGB L:local函数内部作用域 E:enclosing函数内部与内嵌函数之间 G:global全局作用域 B:build-in内置作用域 2.闭包理解与使用 闭包概念:Closure:内部函数中对enclosing作用域的变量进行引用 函数实质与属性 1:函数是一个对象 2:函 阅读全文
posted @ 2018-07-30 22:15 zhenggaoxiong 阅读(411) 评论(0) 推荐(0) 编辑
摘要: 爬取慕课课程图片https://www.imooc.com/course/list 图片url 阅读全文
posted @ 2018-07-30 13:47 zhenggaoxiong 阅读(179) 评论(0) 推荐(0) 编辑
摘要: python正则表达式之re模块其他方法 1:search(pattern,string,flags=0) 在一个字符串中查找匹配 2:findall(pattern,string,flags=0) 找到匹配,返回所有匹配部分的列表 3.sub(pattern,repl,string,count=0 阅读全文
posted @ 2018-07-29 20:43 zhenggaoxiong 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 单个字符匹配 字符 匹配 . 匹配任意字符(除了\n) [...] 匹配字符集 \d/\D 匹配数字/非数字 \s/\S 匹配空白/非空白字符 \w/\W 匹配单词字符[a-zA-A0-9] In [8]: ma = re.match(r'.','b') In [9]: ma.gro ma.grou 阅读全文
posted @ 2018-07-29 09:15 zhenggaoxiong 阅读(2098) 评论(0) 推荐(0) 编辑
摘要: python第一个正则表达式 https://www.imooc.com/learn/550 r'imooc' Pattern Match result 阅读全文
posted @ 2018-07-28 22:23 zhenggaoxiong 阅读(313) 评论(0) 推荐(0) 编辑
摘要: Django初体验创建工程及应用 https://www.imooc.com/learn/458 django-admin startproject mysitecd mysiteDjango创建工程及应用1.工程目录详解manage.py管理项目:包括数据库建立、服务器运行 、测试...pytho 阅读全文
posted @ 2018-07-27 09:44 zhenggaoxiong 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 链接:https://www.nowcoder.com/acm/contest/135/F来源:牛客网 圆(circle) 圆(circle) 圆(circle) 圆(circle) 圆(circle) 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 32768K,其他语言65536 阅读全文
posted @ 2018-07-24 14:52 zhenggaoxiong 阅读(220) 评论(0) 推荐(0) 编辑
摘要: C. Drazil and Factorial time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Drazil is playin 阅读全文
posted @ 2018-06-18 19:18 zhenggaoxiong 阅读(158) 评论(0) 推荐(0) 编辑