摘要: <img /> 元素: align: bottom, top, middle, left, right alt src ismap height width <table> </table> border="1" 边框 cellpadding="10" 单元格边距(Cell padding) cel 阅读全文
posted @ 2018-10-15 19:40 BurgundyRed 阅读(69) 评论(0) 推荐(0) 编辑
摘要: Unless you’re planning to build websites and applications that do nothing but publish content, and don’t accept inputfrom your visitors, you’re going 阅读全文
posted @ 2018-10-03 20:01 BurgundyRed 阅读(98) 评论(0) 推荐(0) 编辑
摘要: Some Available Meta options: Options.abstract If abstract = True, this model will be an abstract base class. Options.app_label If a model is defined o 阅读全文
posted @ 2018-09-29 17:16 BurgundyRed 阅读(105) 评论(0) 推荐(0) 编辑
摘要: class LoginView Attributes: template_name: The name of a template to display for the view userd to log the user in. Defaults to registration/login.htm 阅读全文
posted @ 2018-09-29 16:26 BurgundyRed 阅读(195) 评论(0) 推荐(0) 编辑
摘要: Authentiacting users authenticate(request=None, **credentials) Use authenticate() to verify a set of credentials. It takes credentials as keyword argu 阅读全文
posted @ 2018-09-27 17:55 BurgundyRed 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 恢复内容开始 A many-to-one relationship. Requires two positional arguments: the class to which the model is related and the on_delete option. The possible v 阅读全文
posted @ 2018-09-26 19:28 BurgundyRed 阅读(269) 评论(0) 推荐(0) 编辑
摘要: The rendering process The rendering process takes the intermediate representation of template and context, and turns it into the final byte stream tha 阅读全文
posted @ 2018-09-26 18:46 BurgundyRed 阅读(104) 评论(0) 推荐(0) 编辑
摘要: long int strtol(const char *nptr, char **endptr, int base) strtol()会将nptr指向的字符串,根据参数base,按权转化为long int, 然后返回这个值。 参数base的范围为2~36,和0;它决定了字符串以被转换为整数的权值。可 阅读全文
posted @ 2018-09-04 21:47 BurgundyRed 阅读(1680) 评论(0) 推荐(0) 编辑
摘要: Allocating memory on the heap #include <stdlib.h> void *calloc(size_t numitems , size_t size ); Returns pointer to allocated memory on success, or NUL 阅读全文
posted @ 2018-09-04 21:46 BurgundyRed 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 原子性是某些操作得意圆满成功的关键所在. 特别是它规避了竞争状态(race conditions, 有时也成为竞争冒险). 竞争状态是这样一种情形:操作共享资源的两个进程(或线程),其结果取决于一个无法预期的顺序,即这些进程获得CPU使用权的先后相对顺序. 阅读全文
posted @ 2018-08-29 20:58 BurgundyRed 阅读(124) 评论(0) 推荐(0) 编辑