- 浏览: 187618 次
文章分类
最新评论
1. # -*- coding: utf-8 -*- 推荐使用,解决不同编辑环境中文编码问题
2. 使用“d:\\new.txt“而非“d:\new.txt“,后者会出现转义字符问题
3. Dictionary 类似于Java中的map,key 是大小写敏感
4. List 使用比较频繁
5. 空串 ("") ,空 list ([]) ,空 tuple (()) , 空 dictionary ({}) 为 false
6. Tuple 是不可变的 list。一旦创建,就不能以任何方式改变它。Tuple 比 list 操作速度快,
7. 单引号与双引号在python中等效使用
8.“what’sthis”表示方式
-
1:’what \’s this’. 这里用到了转义符’\’
-
2:”what’s this”
9. " I am first.\
He is second." 等价于 I am first. He is second.
10. r/R 指定字符串 比如r"Happy\n"这里的\n不是换行而是普通字符
11. u/U指定使用unicode编码. 比如:u“Happy”
12. “what’s””your name” 等价于 ”what’syour name”
13. ** 幂运算 // (mod) and or not
14. print line, ,的作用是抑制print产生的换行
-
介绍Python执行过程http://www.cnblogs.com/kym/archive/2012/05/14/2498728.html ,可能大家都误会了Python是解释型语言这种说法,Python类似于Java,是一种先编译后解释型语言。
发表评论
-
python smtp 发邮件代码
2012-10-18 16:37 816#!/usr/bin/env python # -*- ... -
[Python]文件的创建与追加
2012-10-11 11:12 998一、用Python创建一个新文件,内容是从0到9的整数, 每个 ... -
python import模块方法
2012-10-08 11:00 1015python包含子目录中的模块方法比较简单,关键是能够在sys ... -
pythoncomplete.vim
2012-09-28 10:34 859where is vim vim7.3中自带里自动补全 ... -
python 易混地带
2012-09-25 12:59 1024每门编程语言都有易混 ... -
Python 内置对象及模块
2012-09-25 12:58 3193Python作为一种高效的脚本语言,内置了很多实用的函数,同时 ... -
python 特点
2012-09-25 12:56 11691、Python以模块文件的方式组织代码。 Python每个模 ... -
命名类、属性和方法
2012-09-10 16:50 758类名通常由大写字母打头。这是标准惯例,可以帮助你识别类, ... -
import 语句的模块顺序
2012-09-10 16:08 1531我们推荐所有的模块在 Python 模块的开头部分导入。 ... -
python 文件操作
2012-09-07 11:07 1029python中对文件、文件夹(文件操作函数)的操作需要 ... -
Python 函数参数
2012-09-05 11:25 5901. 函数参数 2. 函数引用 3. * Tuple 非关 ... -
Python 标准文件
2012-09-01 23:05 1005Python中, 只要程序一执行, 便可以访问三个标准文件:标 ... -
Python 二分查找
2012-08-29 00:00 809def bsearch(l = [], a = 0 ,b ... -
Python 浅拷贝 深拷贝
2012-08-09 21:25 830深拷贝:a -> b copy(a) ... -
Python Unicode
2012-08-08 21:10 772今天学习Python时,遇到一个问题,Python Non-A ... -
Python 字符串 Template
2012-08-05 16:43 689from string import Template ... -
Python 更新模型
2012-08-05 11:10 818更新模型,顾名思义就是对象在创建成功后,其值是否能够更新 p ... -
待解决问题
2012-08-04 20:25 6571. Python的循环引用 2. >>> ... -
Python __name__
2012-08-04 20:09 721看python程序是经常会碰到 if __name__ == ...
相关推荐
python learning.py,非常适合用于学习Python的小伙伴~
根据Python开发实践中的案例,自己手工敲的代码,因为版本问题,有些地方更改为新版本的方法,可正常使用。
PythonLearning
python learning the hard way(自己打的代码) 供大家学习使用
python语言学习,内容清晰明了,能让你快速入手,轻松学python!
用于初学者学习python语言,通用学习资料
Cousera密歇根大学的python课程的配套教材,适合入门的新手使用(即便不配合视频也很容易看懂),英文原版
Python Machine Learning Machine Learning and Deep Learning with Python, scikit-learn, and TensorFlow, 2nd Edition 很受推荐
Python Machine Learning and Deep Learning with Python, scikit-learn and Tensorflow (Step-by-Step Tutorial For Beginners)
使用Python像专业人士一样学习编码-一种开源,通用和强大的编程语言。
About This Book, Leverage Python' s most powerful open-source libraries for deep learning, data wrangling, and data visualization, Learn effective strategies and best practices to improve and optimize...
Learning Python Learning Python Learning Python Learning Python
学习python的第一课 first class for python
手写扫描版
addition to offering a hands-on experience with machine learning using the Python programming languages and Python-based machine learning libraries, this book introduces the mathematical concepts ...
这是中文版的python教程,大家有兴趣的话可以学习下,保证会受益匪浅。
Deep Learning in Python: Master Data Science and Machine Learning with Modern Neural Networks written in Python, Theano, and TensorFlow (Machine Learning in Python) by LazyProgrammer English | March ...
Python Machine Learning gives you access to the world of predictive analytics and demonstrates why Python is one of the world's leading data science languages. If you want to ask better questions of ...
Python Machine Learning Python Machine Learning Python Machine Learning