<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[CatStarXcode的博客]]></title><description><![CDATA[初恋是C，深爱着OC与Swift，出轨过H5与JS和Java，却选择Python过一辈子...]]></description><link>https://blog.csdn.net/CatStarXcode</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; CatStarXcode]]></copyright><item><title><![CDATA[mac执行python3 --version报错]]></title><link>https://blog.csdn.net/CatStarXcode/article/details/138434183</link><guid>https://blog.csdn.net/CatStarXcode/article/details/138434183</guid><author>CatStarXcode</author><pubDate>Sat, 04 May 2024 08:25:01 +0800</pubDate><description><![CDATA[设置环境变量：确保Python的安装路径已经添加到了环境变量中。如果以上步骤仍然无法解决问题，可能需要更详细的错误信息来进行具体的故障排除。如果上述命令都没有返回正确的版本信息，可能需要重新安装Python。如果Python已安装，可能是环境变量设置问题。如果找到路径，可以尝试直接使用完整路径运行Python，例如。（这里的路径需要替换为你的Python实际安装路径）。如果没有安装，需要先安装Python。Python未安装或未正确安装。查找Python安装路径：使用。查找Python的安装路径。]]></description><category></category></item><item><title><![CDATA[SublimeText - 汉化插件安装教程]]></title><link>https://blog.csdn.net/CatStarXcode/article/details/138102650</link><guid>https://blog.csdn.net/CatStarXcode/article/details/138102650</guid><author>CatStarXcode</author><pubDate>Tue, 23 Apr 2024 04:20:04 +0800</pubDate><description><![CDATA[汉化教程]]></description><category></category></item><item><title><![CDATA[Odoo10 中常见的 Widget 整理]]></title><link>https://blog.csdn.net/CatStarXcode/article/details/122787737</link><guid>https://blog.csdn.net/CatStarXcode/article/details/122787737</guid><author>CatStarXcode</author><pubDate>Sat, 05 Feb 2022 03:17:58 +0800</pubDate><description><![CDATA[Widget是什么

是odoo中字段的显示形式



Odoo内置的widget

widget="mail_thread" ：消息标签

widget="html"： html相关标签

widget='text' ：文本标签

widget="date"： 日期标签

widget="statusbar"：头部状态条标签

widget="email"：电子邮件地址标签

widget="selection" ：下拉选择标签

widget="mail_followers" ：关注者标签

widge]]></description><category></category></item><item><title><![CDATA[Python三目运算符（三元运算符）用法详解]]></title><link>https://blog.csdn.net/CatStarXcode/article/details/122787727</link><guid>https://blog.csdn.net/CatStarXcode/article/details/122787727</guid><author>CatStarXcode</author><pubDate>Sat, 05 Feb 2022 03:13:05 +0800</pubDate><description><![CDATA[我们从一个具体的例子切入本节内容。假设现在有两个数字，我们希望获得其中较大的一个，那么可以使用 if else 语句，例如：


if a&gt;b:
    max = a;
else:
    max = b;

但是Python提供了一种更加简洁的写法，如下所示：


max = a if a&gt;b else b

这是一种类似于其它编程语言中三目运算符? :的写法。Python 是一种极简主义的编程语言，它没有引入? :这个新的运算符，而是使用已有的 if else 关键字来实现相同的功能。..]]></description><category></category></item><item><title><![CDATA[Ubuntu 安装odoo10 环境搭建]]></title><link>https://blog.csdn.net/CatStarXcode/article/details/87883570</link><guid>https://blog.csdn.net/CatStarXcode/article/details/87883570</guid><author>CatStarXcode</author><pubDate>Sat, 05 Feb 2022 02:27:02 +0800</pubDate><description><![CDATA[安装时，默认用户名为odoo

ubuntu16开始使用systemd管理服务，但是systemd兼容sysv init脚本



下载odoo源码

从http://nightly.odoo.com/10.0/nightly/src/odoo_10.0.latest.tar.gz 

下载源码

例如下载到/home/odoo，使用命令解压


tar -zxvf odoo_10.0.latest.tar.gz

建立odoo的运行目录


mkdir /opt/odoo/od...]]></description><category></category></item><item><title><![CDATA[Python md5、sha256、sha1、加密方法]]></title><link>https://blog.csdn.net/CatStarXcode/article/details/117648203</link><guid>https://blog.csdn.net/CatStarXcode/article/details/117648203</guid><author>CatStarXcode</author><pubDate>Sat, 05 Feb 2022 02:04:25 +0800</pubDate><description><![CDATA[需要使用 hashlib 这个库，python 自带的，可以直接用。
要加密的数据需要先使用 encode() 进行编码。


import hashlib

data = "你好"   # 要进行加密的数据
data_sha = hashlib.sha256(data.encode('utf-8')).hexdigest()   
print(data_sha)

用 md5、sha1 的话只要把上面代码里的 sha256 替换一下就好了。







...]]></description><category></category></item><item><title><![CDATA[Python 中获取字典的key列表和value列表]]></title><link>https://blog.csdn.net/CatStarXcode/article/details/121628791</link><guid>https://blog.csdn.net/CatStarXcode/article/details/121628791</guid><author>CatStarXcode</author><pubDate>Tue, 30 Nov 2021 11:32:22 +0800</pubDate><description><![CDATA[# -*- coding: utf-8 -*-
# 定义一个字典
dic = {'剧情': 11, '犯罪': 10, '动作': 8, '爱情': 3, '喜剧': 2, '冒险': 2, '悬疑': 2, '惊悚': 2, '奇幻': 1}
#通过list将字典中的keys和values转化为列表
keys = list(dic.keys())
values = list(dic.values())
# 结果输出
print("keys列表为：",end='')
print(keys)
print(".]]></description><category></category></item><item><title><![CDATA[xml 中的 大于号，小于号]]></title><link>https://blog.csdn.net/CatStarXcode/article/details/121521384</link><guid>https://blog.csdn.net/CatStarXcode/article/details/121521384</guid><author>CatStarXcode</author><pubDate>Wed, 24 Nov 2021 17:57:33 +0800</pubDate><description><![CDATA[&amp;lt;  
			&lt; 
			小于号 
		&amp;gt;  
			&gt; 
			大于号 
		&amp;amp;  
			&amp; 
			和 
		&amp;apos;  
			’ 
			单引号 
		&amp;quot;  
			" 
			双引号 
		


]]></description><category></category></item><item><title><![CDATA[python两个列表获取交集，并集，差集]]></title><link>https://blog.csdn.net/CatStarXcode/article/details/121280744</link><guid>https://blog.csdn.net/CatStarXcode/article/details/121280744</guid><author>CatStarXcode</author><pubDate>Fri, 12 Nov 2021 09:00:37 +0800</pubDate><description><![CDATA[list1=[1,2,3,4,5,6]

list2=[2,3,4]



交集

方法一：list3=[new for new in list1 if new in list2]

方法二：list3=list(set(list1).intersection(set(list2)))



并集

list3=list(set(list1).union(set(list2)))



差集

list3=list(set(list2).difference(set(list1))) # list2中有而.]]></description><category></category></item><item><title><![CDATA[pycharm 常用快捷键整理]]></title><link>https://blog.csdn.net/CatStarXcode/article/details/118811945</link><guid>https://blog.csdn.net/CatStarXcode/article/details/118811945</guid><author>CatStarXcode</author><pubDate>Fri, 16 Jul 2021 17:50:17 +0800</pubDate><description><![CDATA[pycharm常用快捷键

1、编辑（Editing）
Ctrl + Space 基本的代码完成（类、方法、属性）
Ctrl + Alt + Space 快速导入任意类
Ctrl + Shift + Enter 语句完成
Ctrl + P 参数信息（在方法中调用参数）
Ctrl + Q 快速查看文档
F1 外部文档
Shift + F1 外部文档，进入web文档主页
Ctrl + Shift + Z --&gt; Redo 重做
Ctrl + 鼠标 简介/进入代码定...]]></description><category></category></item><item><title><![CDATA[Python list中去重的多种方法]]></title><link>https://blog.csdn.net/CatStarXcode/article/details/118438306</link><guid>https://blog.csdn.net/CatStarXcode/article/details/118438306</guid><author>CatStarXcode</author><pubDate>Sat, 03 Jul 2021 12:14:17 +0800</pubDate><description><![CDATA[去重之后顺序会改变

set去重　(列表去重会让列表改变原来的顺序)


l1 = [1,4,4,2,3,4,5,6,1]
l2 = list(set(l1))
print(l2)    # [1, 2, 3, 4, 5, 6]


但是，可以通过列表中索引（index）的方法保证去重后的顺序不变。


l1 = [1,4,4,2,3,4,5,6,1]
l2 = list(set(l1))
l2.sort(key=l1.index)
print(l2)      # [1, 4, 2, 3, 5, 6]..]]></description><category></category></item><item><title><![CDATA[Python unicode 字符串 转 list]]></title><link>https://blog.csdn.net/CatStarXcode/article/details/118101345</link><guid>https://blog.csdn.net/CatStarXcode/article/details/118101345</guid><author>CatStarXcode</author><pubDate>Tue, 22 Jun 2021 10:25:45 +0800</pubDate><description><![CDATA[unicode 字符串 转list

unicode2list = u'[100, 100, 100, 100, 100, 100]'

1. 方法一


list = eval(unicode2list)

2. 方法二


[int(value) for value in unicode2list.strip("[]").split(",")]









]]></description><category></category></item><item><title><![CDATA[Python time模块 时间戳转换]]></title><link>https://blog.csdn.net/CatStarXcode/article/details/117419759</link><guid>https://blog.csdn.net/CatStarXcode/article/details/117419759</guid><author>CatStarXcode</author><pubDate>Tue, 01 Jun 2021 09:44:34 +0800</pubDate><description><![CDATA[时间戳转换

时间戳获取:


import time
time.time()


时间戳转时间字符串: 时间戳-&gt;时间数组-&gt;格式化时间字符串
时间字符串转时间戳: 格式时间字符串-&gt;时间数组-&gt;时间数组

时间戳转换时间字符串:

time_stamp = time.time() #获取当前时间戳
	time_array = time.localtime(time_stamp) #时间戳转时间数组
	time_str = time.strftime("%Y-%m-%d %H:%M]]></description><category></category></item><item><title><![CDATA[Redis 安装]]></title><link>https://blog.csdn.net/CatStarXcode/article/details/116935696</link><guid>https://blog.csdn.net/CatStarXcode/article/details/116935696</guid><author>CatStarXcode</author><pubDate>Mon, 17 May 2021 15:42:07 +0800</pubDate><description><![CDATA[安装

下载、解压、编译Redis


$ wget http://download.redis.io/releases/redis-6.0.6.tar.gz
$ tar xzf redis-6.0.6.tar.gz
$ cd redis-6.0.6
$ make

进入到解压后的src目录，通过如下命令启动Redis:


$ src/redis-server

您可以使用内置的客户端与Redis进行交互:


$ src/redis-cli
redis&gt; set foo bar
OK
redi..]]></description><category></category></item><item><title><![CDATA[Python 当前时间是那一年第几周的周几]]></title><link>https://blog.csdn.net/CatStarXcode/article/details/116240952</link><guid>https://blog.csdn.net/CatStarXcode/article/details/116240952</guid><author>CatStarXcode</author><pubDate>Wed, 28 Apr 2021 19:41:05 +0800</pubDate><description><![CDATA[isocalendar() 函数　

返回（XX年，一年中的第几周，这一天是周几）


&gt;&gt;&gt; from datetime import datetime
&gt;&gt;&gt; datetime.now().isocalendar()       # 今年2021年；第17周； 周3；  今天2021年04月28日
(2021, 17, 3)
&gt;&gt;&gt; datetime.now().isocalendar()[1]       # 索引为[1]，就可以求出一年的第多少周]]></description><category></category></item><item><title><![CDATA[Postman安装与简单使用]]></title><link>https://blog.csdn.net/CatStarXcode/article/details/115951827</link><guid>https://blog.csdn.net/CatStarXcode/article/details/115951827</guid><author>CatStarXcode</author><pubDate>Wed, 21 Apr 2021 15:22:26 +0800</pubDate><description><![CDATA[Postman使用参考文档：

1.官方英文文档
2.chrome插件整理的postman中文使用教程

Postman一款非常流行的API调试工具。其实，开发人员用的更多。因为测试人员做接口测试会有更多选择，例如Jmeter、soapUI等。不过，对于开发过程中去调试接口，Postman确实足够的简单方便，而且功能强大。

官方网站：https://www.getpostman.com/



下载

1&gt; 、postman下载地址：

1.Postman for MAC

2.Postman ..]]></description><category></category></item><item><title><![CDATA[Ubuntu 18.04 配置国内源]]></title><link>https://blog.csdn.net/CatStarXcode/article/details/89638447</link><guid>https://blog.csdn.net/CatStarXcode/article/details/89638447</guid><author>CatStarXcode</author><pubDate>Sun, 28 Apr 2019 15:13:28 +0800</pubDate><description><![CDATA[安装Ubuntu18.04后，使用国外源太慢了，修改为国内源会快很多。

修改阿里源为Ubuntu 18.04默认的源

备份/etc/apt/sources.list


# 备份
cp /etc/apt/sources.list /etc/apt/sources.list.bak

在/etc/apt/sources.list文件前面添加如下条目

阿里源


# 添加阿里源
deb htt...]]></description><category></category></item><item><title><![CDATA[ubuntu 18.04 LTS 安装搜狗输入法]]></title><link>https://blog.csdn.net/CatStarXcode/article/details/89535796</link><guid>https://blog.csdn.net/CatStarXcode/article/details/89535796</guid><author>CatStarXcode</author><pubDate>Fri, 26 Apr 2019 12:37:22 +0800</pubDate><description><![CDATA[首先安装 fcitx ，再安装搜狗输入法

一、检测是否安装fcitx

首先检测是否有 fcitx ，因为搜狗拼音依赖fcitx

在终端中输入fcitx ，检查fcitx 是否已有


fcitx

提示：

程序 “fcitx” 尚未安装。 您可以使用以下命令安装：


sudo apt-get install fcitx-bin



二、安装fcitx


sudo apt-get...]]></description><category></category></item><item><title><![CDATA[Ubuntu18.04 方便好用的截图工具]]></title><link>https://blog.csdn.net/CatStarXcode/article/details/89378288</link><guid>https://blog.csdn.net/CatStarXcode/article/details/89378288</guid><author>CatStarXcode</author><pubDate>Thu, 18 Apr 2019 14:49:50 +0800</pubDate><description><![CDATA[安装flameshot

下载地址：https://github.com/lupoDharkael/flameshot

安装命令：


sudo apt-get install flameshot



配置快捷键

设置&gt;设备&gt;键盘，设置一个自定义快捷键（拉到最下面）

命令填写：


flameshot gui





截完图后保存Ctrl+S，复制到剪贴板Ctrl+C
...]]></description><category></category></item><item><title><![CDATA[Ubuntu18.04 安装 Odoo10]]></title><link>https://blog.csdn.net/CatStarXcode/article/details/89359495</link><guid>https://blog.csdn.net/CatStarXcode/article/details/89359495</guid><author>CatStarXcode</author><pubDate>Wed, 17 Apr 2019 18:04:42 +0800</pubDate><description><![CDATA[安装Ubuntu 18.04，省略

安装时，默认用户名为odoo 

ubuntu 16.04开始使用systemd管理服务，但是systemd兼容sysv init脚本



下载odoo源码

从http://nightly.odoo.com/10.0/nightly/src/odoo_10.0.latest.tar.gz 

下载源码

例如下载到/hom...]]></description><category></category></item></channel></rss>