当前位置: 首页 > 后端技术 > Python

蟒周刊-391-最后一个官方 Py2 版本 2.7.17 发布

时间:2023-03-26 13:34:18 Python

锜掑懆鍒?391-鏈€鍚庝竴涓畼鏂?Py2 鐗堟湰 2.7.17 鍙戝竷鈾€鈸库檧鏈€鍚庝竴涓畼鏂?Py2 鐗堟湰 2.7.17 鍙戝竷鍘熸枃: PyCoder's Weekly - Issue #391191006 Zoom.Quiet(澶у) 鐢ㄦ椂 42 鍒嗛挓 瀹屾垚蹇瘧191006 Zoom.Quiet(澶у) 鐢ㄦ椂 17 鍒嗛挓 瀹屾垚鏍煎紡杞妱.Arduino 寰帶鍒跺樇 + Python: 鍏ラ棬REAL PYTHONDiscover how to use Arduino microcontrollers with Python to develop your own electronic projects. You鈥檒l learn how to set up circuits and write applications with the Firmata protocol. You鈥檒l control Arduino inputs and outputs and integrate the board with higher-level apps.(鏄篃涔?Arduino 姣?鏍戣帗娲?鍏跺疄涓嶅樊...鍙槸, 涓婃墜宓屽叆绯荤粺, 鐢靛伐涓€绯诲垪宸ュ叿灏卞緱鍏堝噯澶囧苟鐔熺粌浜?.)涓?Python 缂栧啓涓?LLVM 涓撲笟宸ュ叿STEPHEN DIEHL鈥淲e鈥檙e going to build a single module Numba-like compiler for Python. It won鈥檛 be nearly as featureful or complete, but should demonstrate how you can go about building your own little LLVM specializer for a subset of Python or your own custom DSL expression compiler; and integrating it with the standard NumPy/SciPy stack for whatever scientific computing domain you work.鈥漃ython 2.7.17 鍙戝竷PYTHON.ORGPython 2.7.17 is a bug fix release in the Python 2.7.x series. It is expected to be the penultimate release for Python 2.7. 璇︾粏鍙樻洿璇存槑....Python 浠g爜澶嶆潅鎬х€戝竷NIKITA SOBOLEVWhat can be done to prevent your Python code from getting too complex? A good linter setup does much more than finding missing commas and bad quotes. A good linter allows you to rely on it with architecture decisions and help you with the refactoring process.(鏄篃涔?杩樻槸寰楅潬 linter 宸ュ叿,鍥犱负宸ョ▼甯堟€绘槸涓嶈嚜涓荤殑鍦ㄥ伐绋嬩腑灏嗕唬鐮佽秺鍐欒秺澶嶆潅...)鍦?Python 涓噸鏂板疄鐜?Solaris 鍛戒护浣?C 璇█鐨勬€ц兘鎻愰珮浜?7鍊岲ARREN MOFFAT鈥淎s a result of fixing a memory allocation issue in the /usr/bin/listusers command, that had caused issues when it was converted to 64 bit, I decided to investigate if this ancient C code could be improved by conversion to Python.鈥?鏄篃涔?娑夊強鎬ц兘, 鍙よ€佺殑閿?鍧戞€绘槸 C 鎸栫殑...鐜板湪, Python 涔熸湁鏈轰細鏉ュ~/鎸栦簡...)Y缁勫悎鍣ㄧ殑绠€鍗曟湰璐紙鐢≒ython瑙i噴锛塋IONEL PARREAUX鈥淭he Y combinator is a central concept in lambda calculus, which is the formal foundation of functional languages. Y allows one to define recursive functions without using self-referential definitions.鈥?鏄篃涔?缁忓吀鎬濇兂鎬绘槸鍊煎緱鍙嶅鍡摷鐨?..鍙嶆鏃犺鎬庝箞鎺ㄥ,铏界劧鎬绘槸鑳芥垚鍔? 浣嗘槸, 灏辨槸鏃犳硶鐩镐俊鑷繁鐨勭溂鐫?..鐩磋涓婁腑闂翠竴瀹氭湁璋佸伔璧颁簡浠€涔?..)澶ц妯?Python: 涓ユ牸鐨勬ā鍧桟ARL MEYERThe Instagram engineering team is experimenting with a technique for writing Python modules that are side-effect-free on import to reduce server startup time and unexpected global state changes.(鏄篃涔?濂藉惂, 浠€涔堜簨鍎挎暟閲忎竴澶氶兘涓嶅鏄?...)Python 灞炴€ц闂拰鎻忚堪绗﹀崗璁瓵MIR RACHUMA deep dive into Python attribute access and the descriptor protocol. What exactly happens when we say foo.bar?璁ㄨDiscussionsMatplotlib 鑳戒互 xkcd 婕敾椋庢牸鍒涘缓鍥綬EDDIT(鏄篃涔?鏃╁氨鏀寔浜?杩樻槸瀹樻柟鏂囨。涓殑...)鏈€鍠滄鐨?Python 3.8 鐗规€ф槸浠€涔?TWITTER.COM/DBADER_ORG(鏄篃涔?搴旇鏄笉鍙樼殑 import this)鏂囩珷,鏁欑▼鍜屽棷鍝糀rticles, Tutorials and Talkstime.sleep() : 濡備綍鍦ㄤ唬鐮佷腑娣诲姞鏃堕棿寤惰繜REAL PYTHONLearn how to add time delays to your Python programs. You鈥檒l use decorators and the built-in time module to add Python sleep() calls to your code. Then, you鈥檒l discover how time delays work with threads, asynchronous functions, and graphical user interfaces.(鏄篃涔?寤惰繜鍒堕€?..)Django 寮€鍙戝父鐘殑 7涓敊璇疶OMASZ B膭K鈥?Shared by Tomasz B膮k鈥淒jango is powerful web framework, but with power comes responsibility. In this article, we will cover common mistakes that are even seasoned Django developers make, yet most successful Django projects need to deal with these sooner or later.鈥?鏄篃涔?涓€鍒囧父瑙侀敊璇? 閮芥槸瀵?Django 璁捐鎬濇兂璇В閫犳垚鐨?..... with power comes responsibility鑳藉姏甯︽潵璐d换)瓒呰秺cProfile: 閲囨牱鍒嗘瀽鍣ㄥ拰鏃ュ織璁板綍浠ヤ紭鍖栨€ц兘ITAMAR TURNER-TRAURING鈥淵our Python program is too slow. Maybe your web application can鈥檛 keep up, or certain queries are taking a long time. Maybe you have a batch program that takes hours or even days to run. How do you speed it up?鈥?鏄篃涔?鍙曚竴涓皾璇曡緟鍔╁垎鏋愪唬鐮佹潵鎻愰珮閫熷害鐨勫伐鍏?鍏跺疄, 鏈€鏍规湰鐨? 杩樻槸鏀硅繘缂栬瘧宸ュ叿,鑷姩瀹屾垚浼樺寲鍚?..)Vaex 鍔╂偍涓€鑷備箣鍔? 鐢≒ython鍒嗘瀽30澶氬勾鐨勯琛屾暟鎹甁OVAN VELJANOSKI鈥淯sing the Python DataFrame library Vaex, I present the analysis of nearly 200 million flights made by U.S. carriers. Vaex uses fast out-of-core algorithms, making memory issues a thing of the past.鈥?鏄篃涔?)灏咹TML杞崲涓?Jupyter NotebookERIK MARSJA鈥淟earn how to scrape code from a webpage and save it as a Jupyter notebook. In this post, we鈥檒l use Beautifulsoup4, urllib, and json, to save HTML to .ipynb.鈥?鏄篃涔?鍡摷?杩欎釜鍙嶆搷浣滄€濊矾寰堟竻濂囦簡...鍙槸 -> Beautifulsoup4 ?閭e彲绱?..)Python 鐢?Matplotlib 杩涜缁樺浘REAL PYTHONvideoWant to make beautiful plots? Learn about plotting in Python with matplotlib by looking at the theory and following along with practical examples.(鏄篃涔?鍏跺疄鍚?..鍏跺畠鍥捐〃搴撴瘮 Matplotlib 杞讳究澶氫簡...)Keras vs tf.keras : TensorFlow 2.0鏈変粈涔堝尯鍒?ADRIAN ROSEBROCKIn this tutorial you鈥檒l discover the difference between Keras and tf.keras. You鈥檒l also learn what鈥檚 new in TensorFlow 2.0.(鏄篃涔?鍙互璇? tf 鍦ㄦ嫾鍛藉皢 Keras 鍚告敹, 鐒跺悗,涓嶅吋瀹?PyTorch 浠?..)璁捐 CI/CD 绯荤粺: GitHub鎷夊彇璇锋眰涓殑鏃犵棝鐘舵€佹姤鍛奀RISTIAN MEDINA鈥?Shared by Cristian MedinaHow to report status from Docker containers in an automated CI/CD system into GitHub pull requests using Python.Pylint: 浣挎偍 Python 浠g爜椋庢牸涓€鑷碝OSHE ZADKAHow to configure the Pylint code linter to avoid arguing about code complexity.(鏄篃涔?鑰佺墝宸ュ叿, 鎬绘槸瑕佸弽澶嶈鎬庝箞鐢ㄧ殑...)鍒嗘不绠楁硶 鐨?Python 绀轰緥BRANDON SKERRITT绠€鏄撳苟鍙戝湪 PythonPHILIPP JUNGRoll Your Own GUI Automation Library With PythonASRPO.COMPyCon 2019: PyCon 涓婄殑浜烘皯缇や紬CHRIS MAY(鏄篃涔?鍥藉 PyCon 姣忎欢閮戒骇鐢熸捣閲忕殑鍙備細绗旇...涓浗鐨? 鍩烘湰閮芥槸鍚愮碂...灏戞湁绗旇,鍒扮幇鍦ㄥ氨鏀堕泦鍒颁竴绡囦粖骞寸殑:PyCon China 2019 娣卞湷绔欙紝鐪嬭捣鏉ュ緢姘翠絾瀹為檯骞朵笉姘达紒)濂界墿Interesting Projects, Tools and Libraries, Projects & Codeancient-text-restoration: 鐢ㄦ繁搴﹀涔犺繕鍘熷彜鏂囧瓧GITHUB.COM/SOMMERSCHIELD(鏄篃涔?)diff-match-patch: 楂樻€ц兘搴擄紝鐢ㄤ簬鍚屾绾枃鏈珿ITHUB.COM/GOOGLE(鏄篃涔?google 鍑哄搧,鏋滄柇澶ф皵,涓€涓婃潵灏辨敮鎸佷竴鍫嗚瑷€:C++C#DartJavaJavaScriptLuaObjective-CPython06骞村氨鍦ㄥ唴閮ㄤ娇鐢ㄤ簡, 浠婂ぉ鎵嶅紑婧?reloading: 鐢ㄩ噸鏂板姞杞藉惊鐜湪杩愯鏃舵洿鏀筆ython浠g爜GITHUB.COM/JULVOssis_validator: 楠岃瘉SQL Server闆嗘垚鏈嶅姟锛圫SIS锛夌▼搴忓寘GITHUB.COM/MAHDI-HOSSEINI鈥?Shared by MikeBrachioGraph: 鏄撲簬鏋勫缓鐨勭瑪寮忕粯鍥句华锛岀敱Python鎻愪緵鏀寔GITHUB.COM/EVILDMP(鏄篃涔?浣庢垚鏈ā鎷熺鍚?..)馃搯馃悕 娲诲姩/澶т細Events, MeetUp 鐪熺殑鏄叏鐞冪嚎涓嬫椿鍔ㄧ粍缁囦腑蹇冣媴 Python Brasil 2019October 23 to October 29, 2019鈰?PythOnRio MeetupOctober 26, 2019宸磋タ鈰?PyCon Sweden 2019October 31 to November 2, 2019鐟炲吀鈰?PyCon FrOctober 31 to November 4, 2019娉曞浗DAMA鉂わ笍 Happy Pythonic ;-(澶у绉佷汉鏃犺矗浠绘挱鎶?锜掕惀 Python 鍏ラ棬鐝3鏈?01camp3py绗?鏈熷凡寮€璇? 涓烘湡6鍛?191103 鎸夋椂缁撴潫, 鍒版椂鍐嶇害 4py ;-)鏄篃涔嶯N 3809棣栧彂: Issue 391 ~锠庡懆鍒?~姹囬泦鍏ㄧ悆锠庝簨鍎?;-)鏀硅繘: issue-391.md锜掕惀鈩?Python 鍏ラ棬鐝瓅|鍥捐氨||骞荤伅||缁村熀鑷€煎湀锜掑懆鍒?01camp3py 杩涜涓?90922 宸插紑璇?91003 灏嗙粨鏉烶owered by: Zoom.Quiet / 鏄у洜绉戞妧庐