3D-Slicer下载与中文版设置(超详细版)

1,下载网址:www.softpedia.com/get/Science-CAD/3D-Slicer.shtml(在官网下载时会经常超时并终止下载)

1.1 随便选择一个进行下载

1.2 下载成功后双击运行.exe,一直点击下一步即可。

安装好后双击打开,检查是否能打开。

2,汉化教程

2.1 最新ts下载地址:3D Slicer/3D Slicer — Chinese (Simplified) @ Hosted Weblate

点击文件,下载译文。

2.2 下载QT语言专家,下载地址:Qt Linguist(QT语言家)汉化版下载 6.3.1 绿色版-新云软件园

双击.exe运行

2.2.1点击文件,打开TS文件,然后再点击文件选择发布。

2.2.2 此时qm文件已经生成,将qm文件复制到D:\Install\Slicer\Slicer 5.6.2\bin\translations(我这边改了文件名zh_zh-CN)

2.3 打开3D-Slicer,点击Edit-Application Settings ,在General里修改language。

2.3.1 如果没有language字段,点击Internationalization,进行勾选,点击ok,继续进行上一步后,重新打开Slicer即可。

好的,这是一个比较有趣的任务。首先,我们需要确定要爬取哪个网站以及要爬取哪些图片。假设我们要爬取Unsplash网站上的风景图片,可以使用Python中的requests和Beautiful Soup模块进行网页爬取和解析,再使用Python中的urllib模块进行图片下载。 以下是实现步骤: 1.导入所需模块: ```python import requests from bs4 import BeautifulSoup import os import urllib.request ``` 2.使用requests模块获取网页内容: ```python url = 'https://unsplash.com/search/photos/landscape' response = requests.get(url) ``` 3.使用Beautiful Soup解析网页内容,获取图片链接: ```python soup = BeautifulSoup(response.text, 'html.parser') img_tags = soup.find_all('img') urls = [] for img in img_tags: urls.append(img['src']) ``` 4.创建保存图片的文件夹: ```python if not os.path.exists('landscape'): os.makedirs('landscape') ``` 5.使用urllib模块下载图片: ```python for url in urls: filename = os.path.join('landscape', url.split('/')[-1]) try: urllib.request.urlretrieve(url, filename) print('Success: ', url) except: print('Failed: ', url) ``` 完整代码如下: ```python import requests from bs4 import BeautifulSoup import os import urllib.request url = 'https://unsplash.com/search/photos/landscape' response = requests.get(url) soup = BeautifulSoup(response.text, 'html.parser') img_tags = soup.find_all('img') urls = [] for img in img_tags: urls.append(img['src']) if not os.path.exists('landscape'): os.makedirs('landscape') for url in urls: filename = os.path.join('landscape', url.split('/')[-1]) try: urllib.request.urlretrieve(url, filename) print('Success: ', url) except: print('Failed: ', url) ``` 运行代码后,程序将会自动下载Unsplash网站上的风景图片,并保存在名为“landscape”的文件夹中。
评论 19
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值