自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 Django app demo, part 1

Database setup Creating models: define the class and relationships Activating models: add a reference to its configuration class in the INSTALLED_APPS (../settings.py) setting three step guide to m...

2018-08-30 23:14:26 189

原创 stringstream应用举例

在处理字符串分割相关的问题时,由于没有“Split”函数,C++与Java,C#等相比较会较笨拙,可以采用stringstream(即字符串流)的方法类比 Split 函数对字符串做处理。注:默认分隔符为空格。 stringstream 的基本操作: clear() — to clear the stream str() — to get and set string object whos...

2018-08-29 15:32:48 457

原创 Django 2.1 安装指南 windows10

Django是一个开放源代码的Web应用框架,由Python写成。采用了MVC的框架模式,即模型M,视图V和控制器C。它最初是被开发来用于管理劳伦斯出版集团旗下的一些以新闻内容为主的网站的,即是CMS(内容管理系统)软件。适合快速web开发。 windows10 操作系统,安装步骤: 1. 安装 Python 和 Django https://docs.djangoproject.com/en...

2018-08-29 15:12:20 437

原创 Kickstart Practice Round 2017

Probelm A. Country Leader 练习题中的第一题,采用贪心的方法,每次保留最长的/字典序最小的字符串即可。 注意点: 1) C++ 读入带空格的字符串用 getline(cin, s) 2) C++ 中 cin 后使用 getline 之前时要用 getchar() 或者 cin.ignore() 读取缓冲取中留下的换行符 #include <iostream&...

2018-08-23 00:13:04 199

转载 LintCode 1560. 最小字符串

Given a string s of lowercase letters of length n, remove the k characters from it and we will get a new string of length n-k. Please output the new string with the smallest lexicographic order. The ...

2018-08-12 11:40:25 256

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除