How to Get Started With Developing Kodi Plugins

how to get started with developing kodi plugins

开发kodi插件如何入门,通过学习kodi插件开发,你可以实现自己的想要自动化播放音影服务 主要是实现基于kodi实现开机自动播放影片或者音乐或者iptv等,记忆播放等能力 学习kodi插件开发除了需要一些编程经验外,还需要了解kodi系统插件运行环境,开发环境等 今天特记录一下如何搭建kodi开发环境, 搭建开发环境需要准备以下步骤,以windows 10+ python2.7+ vmware 操作环境为例

Read more →

Pycharm Terminal Virtualenv Setting

windows 环境pycharm python 多环境开发设置

在python项目开发中,很多情况每个项目采用不同的python 环境,一般常见的系统默认python 版本为 python 2.7但如果又不想破坏系统原来的python 环境,则可以安装virualenv 依赖解决多版本的问题 virtualen 采用pip install 安装,不管是采用python3版本的pip,还是 python2版本的pip都可以安 装这个依赖,pycharm 具体设置如下:

Read more →

A True SSLContext Object Is Not Available

windows 下pyhon2.7环境pip install 模块报错A true SSLContext object is not available

因为python版本2.7太低,涉及ssl不兼容,需要升级到最新版本的python2.7
具体错误代码如下:
SNIMissingWarning d:\python27\lib\site-packages\pip_vendor\urllib3\util\ssl_.py:160: InsecurePlatformWarning: A true SSLContext object is not available. This pre vents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecurePlatformWarning Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ReadTimeoutError(“HTTPSConnectionPo ol(host=‘pypi.org’, port=443): Read timed out. (read timeout=15)”,)’: /simple/ndg-httpsclient/ d:\python27\lib\site-packages\pip_vendor\urllib3\util\ssl_.py:160: InsecurePlatformWarning: A true SSLContext object is not available. This pre vents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecurePlatformWarning Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ReadTimeoutError(“HTTPSConnectionPo ol(host=‘pypi.org’, port=443): Read timed out. (read timeout=15)”,)’: /simple/ndg-httpsclient/ d:\python27\lib\site-packages\pip_vendor\urllib3\util\ssl_.py:160: InsecurePlatformWarning: A true SSLContext object is not available. This pre vents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecurePlatformWarning Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ReadTimeoutError(“HTTPSConnectionPo ol(host=‘pypi.org’, port=443): Read timed out. (read timeout=15)”,)’: /simple/ndg-httpsclient/ d:\python27\lib\site-packages\pip_vendor\urllib3\util\ssl_.py:160: InsecurePlatformWarning: A true SSLContext object is not available. This pre vents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecurePlatformWarning Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ReadTimeoutError(“HTTPSConnectionPo ol(host=‘pypi.org’, port=443): Read timed out. (read timeout=15)”,)’: /simple/ndg-httpsclient/ d:\python27\lib\site-packages\pip_vendor\urllib3\util\ssl_.py:160: InsecurePlatformWarning: A true SSLContext object is not available. This pre vents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecurePlatformWarning Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ReadTimeoutError(“HTTPSConnectionPo ol(host=‘pypi.org’, port=443): Read timed out. (read timeout=15)”,)’: /simple/ndg-httpsclient/ d:\python27\lib\site-packages\pip_vendor\urllib3\util\ssl_.py:160: InsecurePlatformWarning: A true SSLContext object is not available. This pre vents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecurePlatformWarning Could not find a version that satisfies the requirement ndg-httpsclient (from versions: ) No matching distribution found for ndg-httpsclient d:\python27\lib\site-packages\pip_vendor\urllib3\util\ssl_.py:160: InsecurePlatformWarning: A true SSLContext object is not available. This pre vents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecurePlatformWarning

Read more →

My Python2.7 Notes

python 日常笔记

记录工作要用的python 使用工具,或者常用的代码片段。 Python 是一种解释型语言: 这意味着开发过程中没有了编译这个环节。类似于PHP和Perl语言。Python 是交互式语言: 这意味着,您可以在一个 Python 提示符 »> 后直接执行代码。Python 是面向对象语言: 这意味着Python支持面向对象的风格或代码封装在对象的编程技术。Python 是初学者的语言:Python 对初级程序员而言,是一种伟大的语言,它支持广泛的应用程序开发,从简单的文字处理到 WWW 浏览器再到游戏。

Read more →

Abacus Mental Arithmetic Problem Generation

珠心算二笔、三笔、五笔、十笔一位加减混合计算题自动生成

珠算是以算盘为工具,数学理论为基础,运用手指拨珠,进行运算的一门计算技术,它是我国古代劳动人民重要的发明创造之一,千百年来这一技术不断扩散,传播到世界各国,推进着人类文明的发展历程。

珠心算只有三个符号即1、5和0;数学有10个符号,即0、1、2、3、4、5、6、7、8、9。可见珠心算运算的简捷性。珠心算的直观模型作用能培养小孩子的数学概念能力,珠心算的分析模型作用能帮助小孩子理解应用题的结构关系和数量关系,提高解题能力。

Read more →