蠎加载 147
原文: Import Python Weekly Newsletter - Issue No 147 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… 10 项 Python 初学者常见嗯哼 core-python Do you still make one of these? 简单的选择就是 Pytest PyTest During my work as Python developer, I have seen many different approaches to software testing. Having such developed community and tools, it may seem that this topic should not leave much to discuss in the Python world. For many developers the choice of their test framework might be simple?—?Pytest. Python 中垃圾收集需要了解的事情 garbage collection This article describes garbage collection (GC) in Python 3.6. Usually, you don’t need to worry about memory management when the objects are no longer needed Python automatically reclaims the memory from them. However, understanding how GC works can help you write better Python programs. 使用 Parity&Django Rest Framework 创建 Ethereum API服务 ethereum Making a REST API Services will help you to connect any clients of choice to the Ether Network: Chrome Extensions, Mac App, iOS App or Android App. (是也乎: 以太坊 相关的文章也多了起来, 这是又一个领域的战国时代, 就看大家谁猜的对了… 俺猜, 嘦 google 推出类似的开源项目, 那么… ) Tensorflow 文本分类 text classification Text Classification is the task of assigning the right label to a given piece of text. This text can either be a phrase, a sentence or even a paragraph. Our aim would be to take in some text as input and attach or assign a label to it. Since we will be using Tensorflow deep learning library, we can call this the Tensorflow text classification system. (是也乎: 叕一则文本处理的案例,只是在 PyTorch 批量输出中文案例时, TF 就… ) 您的国家如何商业友好? data science World Development Indicators (WDI) are an extensive and comprehensive compilation of data by the World Bank. WDI includes 1,400 indicators for over 200 economies, and it presents the most current and accurate global development data available. (是也乎: 这简直是教大家怎么进行投资环境的分析哪… 世界发展指标(WDI)… ) 稳定排序 code snippets Stable sorting maintains the original order if two keys are the same 使用 UUID 作为主键 UUID If you’re designing a REST API, auto incremented primary keys can be a threat. They expose a lot of informations about your API and the internal structure. UUIDs can help to cover these information and make your API more secure. In the following I’m going to explain what a primary key is and what problems can occur with auto incremented primary keys. (是也乎: 最大的问题可能是走查时,阅读体验了… ) 构建 Nimoy: 测试运动员 testing Documenting the process of building Nimoy. 在Python中编写域特定语言(DSL) DSL Learn how to create your own Domain Specific Language with Python from scratch with this step-by-step tutorial. (是也乎: 叕叕一则 DSL 的 py 制造过程 ) 用Jupyter笔记本的10个技巧 jypyter Jupyter Notebook (a.k.a iPython Notebook) is brilliant coding tool. It is ideal for doing reproducible research. Here is my list of 10 tips on structuring Jupyter notebooks, I worked out over the time. Django 2.0 beta 1 发布 django Django 2.0 beta 1 is an opportunity for you to try out the assortment of new features in Django 2.0. 用 Python 预测政治偏见 news Recent scandals around fake news have spurred an interest in programmatically gauging the journalistic quality of an article. Companies like Factmata and Full Fact have received funding from Google, and Facebook has launched its “Journalism Project” earlier this year to fight the spread of fake stories in its feed. (是也乎: 国内已经有团队提供类似服务了… ) GetStream.io: 为什么我们从Python切换到Go golang Switching to a new language is always a big step, especially when only one of your team members has prior experience with that language. Early this year, we switched Stream’s primary programming language from Python to Go. This post will explain some of the reasons why we decided to leave Python behind and make the switch to Go. (是也乎: Pythonic 世界也包含 golang 的 简单的说还是性能的需求超过了其它的成本 ) 危险的 Pickles - Python 序列化 pickles Before we get elbow deep in opcodes here, let’s cover a little background. The Python standard library has a module called pickle that is used for serializing and deserializing objects. Except it’s not called serializing and deserializing, it’s pickling and unpickling. 用Python 的 Scikit 来介绍机器学习 scikit In this post, we’ll be doing a step-by-step walkthrough of a basic machine learning project, geared toward people with some knowledge of programming (preferably Python), but who don’t have much experience with machine learning. By the end of this post, you’ll understand what machine learning is, how it can help you, and be able to build your own machine learning classifiers for any dataset you want. Python 循环导入 core-python A circular dependency occurs when two or more modules depend on each other. This is due to the fact that each module is defined in terms of the other. PuDB debugging PuDB is a full-screen, console-based visual debugger for Python. (是也乎: 所以, CCDOS 的世界才是最好的.. ) 流数据帧 pandas This post describes a prototype project to handle continuous data sources of tabular data using Pandas and Streamz. (是也乎: 还有这种操作? DataFrames 不是整体处理的嘛?流式化了怎么矩阵运算? ) 3.7.0a2 release Python 3.7.0a2 now available for testing Python/flatten arbitrarily nested list code snippets python/named tuple magic code snippets Python/exotic pandas filters pandas 好物 ~ 包/模块/库/片段… ...