首先声明,我是一个菜鸟。一下文章中出现技术误导情况盖不负责
《Python for Beginners》为LearnStreet上的Python入门课程。课程网页设计得很好友,可以边学边练。作为Python的初学者,如果有C语言基本,解理起来也比拟轻易。该记笔将重点记载Python与C语言不同的法语和程编方法。
Lesson 2 Variables, Numbers and Booleans
学习记笔:
1.关键字(保留字):and, as, assert, break, class, continue, def, del, elif, else, except, exec, finally, for, from, global, if, import, in, is, lambda, not, or, pass, print, raise, return, try, while, with, yield.
2.两种重要数据类型:整型(int)和浮点型(float)
数据类型转换:
int(x): 将浮点型转换为整型
float(x): 将整型转换为浮点型
查看量变的数据类型:type(x)
3.布尔值:True or False
4. 比拟运算符
== equal to
< strictly less than
> strictly greater than
<= less than or equal to
>= greater than or equal to
! negates any of the above (e.g., != is not equal) (不是很楚清怎么用)
5. 算术运算符
+ add
- subtract
* multiply
/ divide
** power (5**2 = 25, or 5 to the second power) (与C语言不同)
// floor division (与C语言不同)
% modulus
文章结束给大家分享下程序员的一些笑话语录: 话剧:程序员过沟
本剧内容纯属虚构,如有雷同……HEHE……俺也没办法了。
话说某市街道改建,某某软件公司门口横七竖八挖了几条大沟。一群程序员(SDK程序员赵某,VB程序员钱某,VC程序员孙某,DELPHI程序员李某)下班从公司里出来,看到门前的几条沟,于是各显神通……门前第一条沟也就半米来宽,SDK程序员赵某二话没说,轻轻一跃跳了过去,看到其它人纷纷把随身携带的公文包(类库)横在沟上踩着过沟,不屑地说,这么小一条沟,犯得着小题大做用那个吗?看我多么轻松多么洒脱多么……多么……(众人皆怒目横视之……)
接着第二条沟有点宽度。SDK程序员赵某还是还是一马当先,飞跃而起……不好,还差一点才到……幸好凭着多年的(跳远?编程?)经验,单手抓住沟沿,颤巍巍地爬了上来,嘴里还念念有词“高手就是高手啊,虽然差一点就……不过毕竟……HEHE……跳远是过沟的基础嘛,有基础(SDK)就有一切的说……”(众人作瞠目结舌状……)看到别人跳过去了,可自己又跳不了那么远,只好再想办法了……VB程序员钱某,DELPHI程序员李某打开手提,连上手机,开始上网找可供过沟的控件……VC程序员孙某却不慌不忙,打开公文包,把几块衬板拆了下来,然后三下五除二拼成一个简易木桥……“虽然这几个板子(类)做得不怎么样,不过先把这个项目应付过去,有时间我自己做一个好了……”于是踩着板子过了沟。
这时钱某和李某也分别找到了合适的东东。钱某找到的是“钢丝绳.ocx”,安装简单,使用方便,拉出一头,对孙某说“大虾,顺手拉兄弟一把……”,于是把绳子系在沟两边的绿化树木上,踩着钢丝就过了沟。刚刚站稳就四方作揖,“小生这里有礼了”。这时一戴着黄袖圈的老太太跳了出来,抓住钱某,“破坏绿化树木,罚款XXXX元,交钱,交钱,交钱!”(老人家作双枪老太婆怒视伪军状
……钱某被逼无奈,只好边掏钱,边对着后台叫道“导演,我这可是因公牺牲,不给个烈士称号也得报销”,后台一个臭鸡蛋飞出,“叫什么叫,我这个月的粮饷还不知哪里去领呢,都什么时代了,你不下岗都不错了……”)
李某看着刚刚好不容易从台湾拖回来的“铝条.ZIP”
相关推荐
Python Programming for Beginners 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书
When you purchase Python: Programming Language for Beginners - Learn In A Day, you'll find out the importance of this language, and how to begin improving your skills! These fun and easy tips ...
Introduction to python for Beginners.pptx
Python: Practical Python Programming For Beginners and Experts English | 9 July 2016 | ISBN: 1535192976 | 170 Pages Start work on your website, app, or search engine today with this practical Python ...
Python 3 for Absolute Beginners.pdf
Python in 8 Hours, Python for Beginners, Learn Python fast! A Smart way to learn Python, Python programming, Python in easy steps: A Beginner's Guide, Fast & Easy! by Ray Yao English | Feb. 28, 2016 ...
python for beginners
Python Programming for Beginners Easy Steps to Learn the Python Language and Go from Beginner to Expert Today!
Python for beginners
epub完整版 Python Machine Learning.Practical Guide for Beginners.epub
Python3 入门书籍,Python3 比python27多了很多不同的特点
Packt.Python.Beginners.Guide.to.Artificial.Intelligence
西安交大的R语言,很适合初学者!
Easy Python Programming for Beginners Your Step-By-Step Guide to Learning Python Programming
Python: Learn Python in 24 Hours: Complete Beginners Guide English | 19 July 2016 | ASIN: B01IRGB6MY | 110 Pages If you are one of them who easily get scared of Python’s long, complicated code, then...
Packt.Python.Artificial.Intelligence.Projects.for.Beginners.2018
Python Machine Learning Data Structures and Algorithms in Python NumPy Beginners Guide Python自然语言处理 用Python做科学计算(scipy)
Apache Spark 2.0 for Beginners English | ISBN: 1785885006 | 2016 | Key Features This book offers an easy introduction to the Spark framework published on the latest version of Apache Spark 2 Perform ...
分享一本英文python书籍,是azw3格式的是kindle商店正版破解的,epub版是无损破解。