python
文章平均质量分 78
sulaymanyf
这个作者很懒,什么都没留下…
展开
-
python自学路之启程
Python3安装方式:(亲测可行):http://www.cnblogs.com/rookie404/p/6142151.html Alex(金角大王)博客: http://www.cnblogs.com/alex3714/ csrf_token装饰器:(武) http://www.cnblogs.com/wupeiqi/articles/5246483.html 武Sir(银角大...转载 2018-04-24 15:30:38 · 383 阅读 · 0 评论 -
pycharm常用快捷键
1、编辑(Editing) Ctrl + Space 基本的代码完成(类、方法、属性) Ctrl + Alt + Space 快速导入任意类 Ctrl + Shift + Enter 语句完成 Ctrl + P 参数信息(在方法中调用参数) Ctrl + Q 快速查看文档 F1 外部文档 Shift + F1 外部文档,进入web文档主页 Ctr...转载 2018-04-24 15:37:50 · 128 阅读 · 0 评论 -
python自学1
python 安装到win系统是,在配置环境变量后可以修改python的执行文件名,来分别运行不同版本的python。 python对于文件后缀可以使用任何后缀, 但是为了以后导入模块时不会出错,使用.py命名 -*- coding:utf-8 -*- python2 运行含有中文的程序时,需要要文件头加上以上说明。 python3 之后默认编...原创 2018-07-11 14:01:36 · 108 阅读 · 0 评论 -
python练习
1、执行Python 脚本的两种方式 2、简述位、字节的关系 一位是四个字节,字节是计算机中最小的单位。 3、简述ascii、unicode、utf-‐8、gbk 的关系 ascii码 Unicode是万国码用来解决国际上不同地区的文字编码问题,但因为对兼容汉子,用来储存英文时也取16个字节,比较占用空间,所以又推出utf-8, gbk时国标编码。 4、请写出 “李杰” 分别用u...原创 2018-07-11 23:45:02 · 309 阅读 · 0 评论 -
python字符类方法
class str(object): """ str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str Create a new string object from the given object. If encoding or errors i...原创 2018-07-12 13:37:38 · 174 阅读 · 0 评论 -
python字典类方法
class dict(object): """ dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dic...原创 2018-07-12 17:42:29 · 295 阅读 · 0 评论 -
python列表 类方法
class list(object): """ list() -> new empty list list(iterable) -> new list initialized from iterable's items """ def append(self, p_object): # real signature unknown; restored...原创 2018-07-12 17:46:13 · 642 阅读 · 0 评论