![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
Hold2u
这个作者很懒,什么都没留下…
展开
-
Nvidia TX2(Ubuntu 18.04) 安装code-oss
当前想要用Nvidia TX2来开发ROS,但是在配置环境时遇到了各种各样的问题。Nvidia TX2作为一款arm64架构的产品,虽然都使用了Ubuntu 18.04系统,但与之前使用INTEL的工控机在配置时可以说是大不相同这里先来说下code-oss(Vscode)配置目前在网上查到的资料最多的是从这个网站http://`https://packagecloud.io/headmelted/codebuilds?page=15下载1.28版本,但是这个网站已经没有这些资源,后来下载了1.3原创 2021-11-13 16:03:02 · 2139 阅读 · 0 评论 -
Python连接MySQL(融合多篇文章)详细讲解
最近开始学习Python,想要连接数据库MySQL,发现网上很多文章写的不够详细,遂在这里讲讲,希望你们能够少走一点弯路一、安装MySQL、Python、PycharmMySQL下载地址:https://www.mysql.com/downloads/,推荐使用安装版 ,免安装版配置特别容易出现问题。Python下载地址:https://www.python.org/,直接官网下载安装原创 2017-11-21 17:24:07 · 310 阅读 · 0 评论 -
Python 列表、字典、集合操作
列表中筛选元素data = [1,5, -3, -2, 6, 0, 9]res = []for x in data: if x >= 0: res.append(x)print(res)from random import randintdata = [randint(-10, 10) for _ in range(10)]print(data)...原创 2018-12-30 21:58:24 · 137 阅读 · 0 评论 -
使用for语句来迭代多个可迭代对象
并行zip函数将多个可迭代对象合并,每次迭代返回一个元祖from random import randinttotal = []chinese = [randint(60, 100) for _ in range(40)]math = [randint(60, 100) for _ in range(40)]english = [randint(60, 100) for _ in...原创 2018-12-31 19:53:49 · 468 阅读 · 0 评论 -
python3 requests + 正则表达式抓取猫眼电影
import requestsfrom requests.exceptions import RequestExceptionimport reimport jsonfrom multiprocessing import Pooldef get_one_page(url): try: response = requests.get(url...原创 2019-01-18 19:53:42 · 243 阅读 · 0 评论 -
python 多线程编程实现的两种方式
import timeimport threadingdef get_detail_html(url): print("get detail html started") time.sleep(2) print("get detail html end")def get_detail_url(url): print('get detail url start...原创 2019-01-21 21:23:29 · 189 阅读 · 0 评论