魔塔java源码-learnPython:学习Python

上传者: 38660058 | 上传时间: 2023-02-27 20:43:07 | 文件大小: 182KB | 文件类型: ZIP
魔塔java源码 learnPython ##Python基础 #开头是注释 :语句以冒号结尾,下面缩进的语句被视为代码块 a=100 if a>0: print(a) else: print(-a) ###数据类型和变量 ####字符串 特殊字符需要转义。 比如: 双引号里面又包含双引号。 "I'am \"ok\"" 如果一个字符串中有很多字符需要转义,需要加很多\,为了简化,Python还允许用r''来表示,''内部的字符串默认不转义。 status = r'I'am "ok"' 用'''...'''的方式来表示多行内容。 print('''line1 line2 line3''') ####布尔值 True``False 布尔值可以用and or not运算。 ####空值 None,None不能理解为0,因为0是有意义的,而None是一个特殊的空值。 解释一下除法为什么也是精确的: Python中有两种除法: /的结果是浮点数,即使两个数可以整除,那么也是浮点数。 print(9/3) 3.0 //地板除,其结果只取整数部分。 取余 >>> 10%3 1 注意: Pytho

文件下载

资源详情

[{"title":"( 95 个子文件 182KB ) 魔塔java源码-learnPython:学习Python","children":[{"title":"learnPython-master","children":[{"title":"jingyesi.py <span style='color:#111;'> 94B </span>","children":null,"spread":false},{"title":"bibao.py <span style='color:#111;'> 197B </span>","children":null,"spread":false},{"title":"len.py <span style='color:#111;'> 326B </span>","children":null,"spread":false},{"title":"oopHigher","children":[{"title":"enumTest.py <span style='color:#111;'> 886B </span>","children":null,"spread":false},{"title":"customClass.py <span style='color:#111;'> 3.17KB </span>","children":null,"spread":false},{"title":"hello.py <span style='color:#111;'> 112B </span>","children":null,"spread":false},{"title":"slots.py <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"property.py <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"helloTest2.py <span style='color:#111;'> 222B </span>","children":null,"spread":false},{"title":"helloTest.py <span style='color:#111;'> 104B </span>","children":null,"spread":false},{"title":"__pycache__","children":[{"title":"enum.cpython-35.pyc <span style='color:#111;'> 468B </span>","children":null,"spread":false},{"title":"hello.cpython-35.pyc <span style='color:#111;'> 445B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Studnet.py <span style='color:#111;'> 406B </span>","children":null,"spread":false},{"title":"StudentSort.py <span style='color:#111;'> 435B </span>","children":null,"spread":false},{"title":"helloworld.py <span style='color:#111;'> 19B </span>","children":null,"spread":false},{"title":"函数式编程.md <span style='color:#111;'> 6.53KB </span>","children":null,"spread":false},{"title":"callTest.py <span style='color:#111;'> 59B </span>","children":null,"spread":false},{"title":"temp.py <span style='color:#111;'> 109B </span>","children":null,"spread":false},{"title":"PropertyTest.py <span style='color:#111;'> 619B </span>","children":null,"spread":false},{"title":"urllib","children":[{"title":"postTest01.py <span style='color:#111;'> 1006B </span>","children":null,"spread":false},{"title":"novelTest.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"urllibTest02.py <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"urllibTest01.py <span style='color:#111;'> 733B </span>","children":null,"spread":false}],"spread":true},{"title":"exception","children":[{"title":"exceptionTest1.py <span style='color:#111;'> 673B </span>","children":null,"spread":false},{"title":"debug.py <span style='color:#111;'> 476B </span>","children":null,"spread":false}],"spread":true},{"title":"decorator.py <span style='color:#111;'> 658B </span>","children":null,"spread":false},{"title":"SlotsTest.py <span style='color:#111;'> 395B </span>","children":null,"spread":false},{"title":"module","children":[{"title":"moduleTest1.py <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false},{"title":"thumb.jpg <span style='color:#111;'> 2.96KB </span>","children":null,"spread":false},{"title":"test.jpg <span style='color:#111;'> 82.95KB </span>","children":null,"spread":false}],"spread":false},{"title":"Person2.py <span style='color:#111;'> 614B </span>","children":null,"spread":false},{"title":"pattern","children":[{"title":"patternTest01.py <span style='color:#111;'> 238B </span>","children":null,"spread":false},{"title":"splitTest01.py <span style='color:#111;'> 441B </span>","children":null,"spread":false},{"title":"groupTest01.py <span style='color:#111;'> 427B </span>","children":null,"spread":false}],"spread":false},{"title":"function","children":[{"title":"test2.py <span style='color:#111;'> 392B </span>","children":null,"spread":false},{"title":"test1.py <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false}],"spread":false},{"title":"Person.py <span style='color:#111;'> 261B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 93.94KB </span>","children":null,"spread":false},{"title":"functionalProgramming","children":[{"title":"decorator.py <span style='color:#111;'> 2.36KB </span>","children":null,"spread":false},{"title":"FunctionalProgramming.md <span style='color:#111;'> 2.03KB </span>","children":null,"spread":false},{"title":"returnFunction.py <span style='color:#111;'> 860B </span>","children":null,"spread":false},{"title":"filter.py <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"sorted.py <span style='color:#111;'> 732B </span>","children":null,"spread":false},{"title":"partial.py <span style='color:#111;'> 432B </span>","children":null,"spread":false},{"title":"map.py <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false},{"title":"test1.py <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"lambda.py <span style='color:#111;'> 179B </span>","children":null,"spread":false}],"spread":false},{"title":"Person3.py <span style='color:#111;'> 515B </span>","children":null,"spread":false},{"title":"面向对象编程基础.md <span style='color:#111;'> 4.81KB </span>","children":null,"spread":false},{"title":"定制类.md <span style='color:#111;'> 4.27KB </span>","children":null,"spread":false},{"title":"firstPython","children":[{"title":"inAndOut.py <span style='color:#111;'> 314B </span>","children":null,"spread":false},{"title":"calc.py <span style='color:#111;'> 29B </span>","children":null,"spread":false}],"spread":false},{"title":"partial.py <span style='color:#111;'> 157B </span>","children":null,"spread":false},{"title":"HTMLParser","children":[{"title":"HTMLParserTest01.py <span style='color:#111;'> 809B </span>","children":null,"spread":false},{"title":"HTMLParserTest01.py~ <span style='color:#111;'> 710B </span>","children":null,"spread":false}],"spread":false},{"title":"test.py <span style='color:#111;'> 257B </span>","children":null,"spread":false},{"title":"input.py <span style='color:#111;'> 110B </span>","children":null,"spread":false},{"title":"pickling","children":[{"title":"pickling.py <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false}],"spread":false},{"title":"Student.py <span style='color:#111;'> 389B </span>","children":null,"spread":false},{"title":"higher","children":[{"title":"test2.py <span style='color:#111;'> 384B </span>","children":null,"spread":false},{"title":"higher.py <span style='color:#111;'> 2.58KB </span>","children":null,"spread":false},{"title":"higher.md <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"test.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"test1.py <span style='color:#111;'> 200B </span>","children":null,"spread":false}],"spread":false},{"title":"类的继承.md <span style='color:#111;'> 3.37KB </span>","children":null,"spread":false},{"title":"processThread","children":[{"title":"process","children":[{"title":"sonProcessTest.py <span style='color:#111;'> 483B </span>","children":null,"spread":false},{"title":"communicateByQueue.py <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false},{"title":"forkTest.py <span style='color:#111;'> 400B </span>","children":null,"spread":false},{"title":"multiprocessingTest.py <span style='color:#111;'> 453B </span>","children":null,"spread":false},{"title":"poolTest.py <span style='color:#111;'> 692B </span>","children":null,"spread":false}],"spread":false},{"title":"distributedProcess","children":[{"title":"task_worker.py~ <span style='color:#111;'> 24B </span>","children":null,"spread":false},{"title":"task_master.py <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"task_worker.py <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"task_master.py~ <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false}],"spread":false},{"title":"Thread","children":[{"title":"endlessLoop.py~ <span style='color:#111;'> 230B </span>","children":null,"spread":false},{"title":"ThreadTest1.py <span style='color:#111;'> 529B </span>","children":null,"spread":false},{"title":"ThreadTest2.py <span style='color:#111;'> 586B </span>","children":null,"spread":false},{"title":"endlessLoop.py <span style='color:#111;'> 231B </span>","children":null,"spread":false},{"title":"ThreadTest3.py <span style='color:#111;'> 762B </span>","children":null,"spread":false}],"spread":false},{"title":"threadLocal","children":[{"title":"ThreadLocalTest1.py <span style='color:#111;'> 531B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"模块.md <span style='color:#111;'> 2.30KB </span>","children":null,"spread":false},{"title":"mathTest.py <span style='color:#111;'> 768B </span>","children":null,"spread":false},{"title":"fibTest.py <span style='color:#111;'> 203B </span>","children":null,"spread":false},{"title":"test","children":[{"title":"mydict.py <span style='color:#111;'> 339B </span>","children":null,"spread":false},{"title":"mydict_test.py <span style='color:#111;'> 986B </span>","children":null,"spread":false},{"title":"__pycache__","children":[{"title":"mydict.cpython-35.pyc <span style='color:#111;'> 826B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"IOTest","children":[{"title":"testFile.txt <span style='color:#111;'> 11B </span>","children":null,"spread":false},{"title":"fileTest.py <span style='color:#111;'> 3.67KB </span>","children":null,"spread":false}],"spread":false},{"title":"basic","children":[{"title":"if.py <span style='color:#111;'> 568B </span>","children":null,"spread":false},{"title":"dict.py <span style='color:#111;'> 633B </span>","children":null,"spread":false},{"title":"tuple.py <span style='color:#111;'> 179B </span>","children":null,"spread":false},{"title":"list.py <span style='color:#111;'> 812B </span>","children":null,"spread":false},{"title":"for.py <span style='color:#111;'> 441B </span>","children":null,"spread":false},{"title":"BMITest.py <span style='color:#111;'> 571B </span>","children":null,"spread":false}],"spread":false},{"title":"oop","children":[{"title":"studnetTest.py <span style='color:#111;'> 3.70KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明