作者: Jim Wang 公众号: 巴博萨船长

摘要:如何解决pyenv的Windows版本pyenv-win在Windows 7中安装配置pyenv-win时,遇到的:: [ERROR] :: An error occurred in the support of the secure channel,为什么会存在secure protocol 安全协议的问题?如何在Window 7系统中开启TLS 1.0和 TSL 2.0两个协议,什么是SChannel ?如何设置pyenv版本列表中的system选项?mlink命令中的/f与/d的区别是什么?

Abstract: How to solve the problem of pyenv-win when installing and configuring pyenv-win in Windows 7:: [ERROR] :: An error occurred in the support of the secure channel, why there is a secure protocol problem? ? How to enable TLS 1.0 and TSL 2.0 in Window 7 system, what is SChannel? How to set the system option in the pyenv version list? What is the difference between /f and /d in the mlink command?

阅读全文

作者: Jim Wang 公众号: 巴博萨船长

摘要:为何需要使用pyenv来管理python的版本?为何需要使用virtualenv来创建python虚拟运行环境?pyenv与pipenv和virtualenv的关系是什么样的?在自己使用pyenv的时候遇见过什么样的问题,又是如何解决所遇问题的。如果遇见诸如“BUILD FAILED”的安装错误,出现该错误的原因可能是什么?

Abstract: Why do we need to manage the use pyenv python version?Why do I need to use virtualenv to create a python virtual runtime environment? What is the relationship with pyenv, pipenv, and virtualenv ?What kind of problems have been encountered when using pyenv and how have they been solved? If you encounter an installation error such as “BUILD FAILED”, what could be the cause of the error?

阅读全文

作者: Jim Wang 公众号: 巴博萨船长

摘要:Python 是如何访问和控制系统的环境变量的,Python中的父进程与子进程间的环境变量关系是何?能不能在运行时修改环境变量?子进程中对环境变量修改能不能传递给对父进程?如果能,怎么样实现这样的变化?如何使用subprocess.Popen运行vcvars.bat,然后在持续集成时,完成devenv清理和创建的前期准备。

Abstract: How does Python access and control the system‘s environment variables? What is the relationship between the environment variables of the parent process and the child process in Python? Can environment variables be modified at runtime? Can the modification of environment variables in the child process be passed to the parent process? If so, how to achieve such a change? How to use subprocess.Popen to run vcvars.bat, and then complete the preliminary preparations for the Clean and Build of devenv during CI.

阅读全文

作者: Jim Wang 公众号: 巴博萨船长

列表与操作方法

列表list是Python语言中的标准数据类型,进一步讲list是一种可变的序列类型,不可变的有tuple和range(注:Python 3.x中xrange已经不存在了)。可变序列类型可变就是长度可以改变,所含元素数值可以改变,元素数据类型可以改变;序列意指成员有序排列,可以通过索引访问元素。既然是序列类型,就一定可以迭代(for 循环),所以列表是可迭代的对象,请注意可迭代迭代器的差异。

阅读全文

作者: Jim Wang 公众号: 巴博萨船长

虽然Python简单并且容易部署,平时开发时,除了常见的py和pyc文件后缀以外,其实python还有一些别的文件扩展名。我们这篇文章就归纳总结一下所有的与python相关的文件扩展名filename extension(又称后缀名)与各种文件扩展名的文件是如何产生,每种文件文件扩展名的作用。

阅读全文

作者: Jim Wang 公众号: 巴博萨船长

在计算机编程的过程中,常常会涉及到浮点数(小数)的算术运算。稍加留意就会发现,算术运算的结果时常是不正确的。如果程序中有条件语句if加逻辑判断来控制程序执行,由于判断结果也不符合预期,程序就会流向错误的节点。经典例子就是0.1的10次求和与1进行逻辑判断得出的结果为False,遇见相似的问题会把自己急出一身汗,却也弄不个所以然来。

阅读全文

作者: Jim Wang 公众号: 巴博萨船长

摘要:如果父类是个公用类,很多子项目中都运用到了,而子类也要作为一个基本类在该项目中的很多地方都要用到,但是的原始父类里面有些类属性,如何实现父类与子类间属性的设置与获取的传递呢?

Abstract: If the parent class is a public class, it is used in many sub-projects, and the sub-class is also used as a basic class in many places in the project, but there are some class attributes in the original parent class, how to implement the parent class What about the transfer of property settings and acquisitions between subclasses?

阅读全文
作者的图片

Jim Wang


全栈探索之路
记录个人对技术的理解和开发过程中遇到的问题,欢迎了解更多。

软件工程师


河南,中国
global.wechat_public_qr_code_image

请扫描上方的二维码订阅我的个人微信公众号


原创不易,多多点赞分享支持。

global.wechat_public_search_bar_image