网上大部分解决方法是删除用户目录下.gradle目录(参见:https://blog.csdn.net/u011429167/article/details/71512276),我采用这种方法后,仍然报错,最后在项目目录下的.gradle 内,删除 workspace-id.txt.lock 文件解决了问题。
2020-06-17
Android Studio运行模拟器错误:Unexpected lock protocol found in lock file. Expected 3, found 0.
Comments Off on Android Studio运行模拟器错误:Unexpected lock protocol found in lock file. Expected 3, found 0.
2020-05-23
python 函数化编程例子
参考https://www.liaoxuefeng.com/wiki/1016959663602400/1017328525009056
一、map将传入的函数依次作用到序列的每个元素,并把结果作为新的Iterator返回,范例:
[code language=”python”]
list_a=[1,3,5,1,2,3]
map(str, [1, 2, 3, 4, 5, 6, 7, 8, 9])
map(str, [item for item in list_a]) #循环将每个元素转换为字符串
[str(item) for item in list_a] # 也可以简化成左边格式
[/code]
Comments Off on python 函数化编程例子
2020-05-10
centos7.5 使用python3 selenium爬虫
不要使用google-chrome-stable_current_x86_64.rpm,因为centos7.5仓库中的chromedriver是79的,而最新的google-chrome是80,两者匹配不起来
- 安装
- yum install python3
- yum install chromedriver
- yum install chromium
- pip3 install selenium
- 测试程序
Comments Off on centos7.5 使用python3 selenium爬虫
2020-04-22
安装 python的 Windows嵌入版本
参考:https://dev.to/fpim/setting-up-python-s-windows-embeddable-distribution-properly-1081
理论上嵌入式版本不能单独作为运行环境,但是本人一向不喜欢安装.exe,怕环境被污染,参考网上一些文章之后,初步能运行起来,还未详细调试
Comments Off on 安装 python的 Windows嵌入版本
install v2ray at centos8
- install dependencies
- yum install nginx
- yum install wget
- open firewall
- firewall-cmd –permanent –zone=public –add-port=http/tcp
- firewall-cmd –permanent –zone=public –add-port=https/tcp
- firewall-cmd –reload
Comments Off on install v2ray at centos8