中文亚洲精品无码_熟女乱子伦免费_人人超碰人人爱国产_亚洲熟妇女综合网

當前位置: 首頁 > news >正文

網(wǎng)站開發(fā)提案百度關(guān)鍵詞優(yōu)化有效果嗎

網(wǎng)站開發(fā)提案,百度關(guān)鍵詞優(yōu)化有效果嗎,網(wǎng)站開發(fā)執(zhí)行什么標準號,哪些網(wǎng)站可以做簽約設(shè)計師入門島作業(yè) Linux闖關(guān)任務(wù):完成 SSH 連接與端口映射并運行 hello_world.py。配置vscode作業(yè)內(nèi)容 可選任務(wù)1:將Linux基礎(chǔ)命令在開發(fā)機上完成一遍作業(yè)內(nèi)容 可選任務(wù) 2:使用 VSCODE 遠程連接開發(fā)機并創(chuàng)建一個conda環(huán)境作業(yè)內(nèi)容 可選任務(wù) 3&#…

入門島作業(yè)

  • Linux
      • 闖關(guān)任務(wù):完成 SSH 連接與端口映射并運行 hello_world.py。
          • 配置vscode
          • 作業(yè)內(nèi)容
      • 可選任務(wù)1:將Linux基礎(chǔ)命令在開發(fā)機上完成一遍
          • 作業(yè)內(nèi)容
      • 可選任務(wù) 2:使用 VSCODE 遠程連接開發(fā)機并創(chuàng)建一個conda環(huán)境
          • 作業(yè)內(nèi)容
      • 可選任務(wù) 3:創(chuàng)建并運行test.sh文件
          • 作業(yè)內(nèi)容
  • Python
      • 闖關(guān)任務(wù):Python實現(xiàn)wordcount
          • 作業(yè)內(nèi)容
      • 闖關(guān)任務(wù):Vscode連接InternStudio debug筆記
          • 作業(yè)內(nèi)容
  • Git
      • 任務(wù)1: 破冰活動:自我介紹
          • 作業(yè)內(nèi)容
      • 任務(wù)2: 實踐項目:構(gòu)建個人項目
          • 作業(yè)內(nèi)容

Linux

闖關(guān)任務(wù):完成 SSH 連接與端口映射并運行 hello_world.py。

配置vscode

按照教學文檔的內(nèi)容來
打開vscode,在應(yīng)用商店中搜索Remote-SSH并安裝
打開terminal,輸入ssh-keygen 創(chuàng)建一對鑰匙
想要加密的可以輸入ssh-keygen -t rsa 創(chuàng)建鑰匙,只是我自己實踐下來發(fā)現(xiàn)用加密的鑰匙遠程的時候經(jīng)常提示輸入密碼
使用Get-Content命令查看生成的密鑰并復制下來
然后去開發(fā)機平臺,在首頁點擊配置SSH Key,接著點擊添加SSH公鑰,將復制的公鑰粘貼到公鑰框中,名稱會被自動識別到,最后點擊立即添加,SSH Key就配置完成了
接著新建開發(fā)機,點擊SSH連接,將彈框中的命令復制下來,到vscode運行
在這里插入圖片描述
登陸成功后控制臺如圖所示:
在這里插入圖片描述

作業(yè)內(nèi)容

先安裝gradio
使用命令安裝依賴包

pip install gradio==4.29.0

然后在Web IDE的終端中創(chuàng)建一個hello_world.py

vi hello_world.py

輸入以下內(nèi)容并保存

import socket
import re
import gradio as gr# 獲取主機名
def get_hostname():hostname = socket.gethostname()match = re.search(r'-(\d+)$', hostname)name = match.group(1)return name# 創(chuàng)建 Gradio 界面
with gr.Blocks(gr.themes.Soft()) as demo:html_code = f"""<p align="center"><a href="https://intern-ai.org.cn/home"><img src="https://intern-ai.org.cn/assets/headerLogo-4ea34f23.svg" alt="Logo" width="20%" style="border-radius: 5px;"></a></p><h1 style="text-align: center;">?? Welcome {get_hostname()} user, welcome to the ShuSheng LLM Practical Camp Course!</h1><h2 style="text-align: center;">😀 Let’s go on a journey through ShuSheng Island together.</h2><p align="center"><a href="https://github.com/InternLM/Tutorial/blob/camp3"><img src="https://oss.lingkongstudy.com.cn/blog/202406301604074.jpg" alt="Logo" width="20%" style="border-radius: 5px;"></a></p>"""gr.Markdown(html_code)demo.launch()

運行python腳本

python hello_world.py

在這里插入圖片描述
程序運行成功,vscode自動幫我們做了端口映射
在瀏覽器中打開便可以看到程序運行的結(jié)果
在這里插入圖片描述

可選任務(wù)1:將Linux基礎(chǔ)命令在開發(fā)機上完成一遍

作業(yè)內(nèi)容

在這里插入圖片描述
在這里插入圖片描述

可選任務(wù) 2:使用 VSCODE 遠程連接開發(fā)機并創(chuàng)建一個conda環(huán)境

當我們要使用conda安裝包的時候會非常慢,我們可以設(shè)置國內(nèi)鏡像提升安裝速度,示例如下:

#設(shè)置清華鏡像
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
作業(yè)內(nèi)容

我們可以使用以下命令創(chuàng)建python版本為3.10、名字為internlm的虛擬環(huán)境

conda create -n internlm python=3.10

在這里插入圖片描述

激活虛擬環(huán)境:

conda activate internlm

在這里插入圖片描述

可選任務(wù) 3:創(chuàng)建并運行test.sh文件

作業(yè)內(nèi)容

根目錄下創(chuàng)建test.sh文件,寫入以下內(nèi)容:

#!/bin/bash# 定義導出環(huán)境的函數(shù)
export_env() {local env_name=$1echo "正在導出環(huán)境: $env_name"# 導出環(huán)境到當前目錄下的env_name.yml文件conda env export -n "$env_name" > "$env_name.yml"echo "環(huán)境導出完成。"
}# 定義還原環(huán)境的函數(shù)
restore_env() {local env_name=$1echo "正在還原環(huán)境: $env_name"# 從當前目錄下的env_name.yml文件還原環(huán)境conda env create -n "$env_name" -f "$env_name.yml"echo "環(huán)境還原完成。"
}# 檢查是否有足夠的參數(shù)
if [ $# -ne 2 ]; thenecho "使用方法: $0 <操作> <環(huán)境名>"echo "操作可以是 'export' 或 'restore'"exit 1
fi# 根據(jù)參數(shù)執(zhí)行操作
case "$1" inexport)export_env "$2";;restore)restore_env "$2";;*)echo "未知操作: $1"exit 1;;
esac

運行test.sh

chmod +x test.sh
./test.sh export internlm
./test.sh restore internlm

在這里插入圖片描述

Python

闖關(guān)任務(wù):Python實現(xiàn)wordcount

實現(xiàn)一個 wordcount 函數(shù),統(tǒng)計英文字符串中每個單詞出現(xiàn)的次數(shù)。返回一個字典,key 為單詞,value 為對應(yīng)單詞出現(xiàn)的次數(shù)。

思路:

文本轉(zhuǎn)換為小寫。
將所有標點符號(’s除外)轉(zhuǎn)為空格。
分割文本為單詞列表。
使用字典來記錄單詞出現(xiàn)的次數(shù)。

作業(yè)內(nèi)容
text = """
Got this panda plush toy for my daughter's birthday,
who loves it and takes it everywhere. It's soft and
super cute, and its face has a friendly look. It's
a bit small for what I paid though. I think there
might be other options that are bigger for the
same price. It arrived a day earlier than expected,
so I got to play with it myself before I gave it
to her.
"""def wordcount(text):wordcount_result = {}text = text.lower()text = text.replace(",","").replace(".","")for t in text.split():if t not in wordcount_result.keys():wordcount_result[t] = 1else:wordcount_result[t] += 1return wordcount_resultif __name__ == '__main__':print(wordcount(text))

運行結(jié)果

{'got': 2, 'this': 1, 'panda': 1, 'plush': 1, 'toy': 1, 'for': 3, 'my': 1, "daughter's": 1, 'birthday': 1, 'who': 1, 'loves': 1, 'it': 5, 'and': 3, 'takes': 1, 'everywhere': 1, "it's": 2, 'soft': 1, 'super': 1, 'cute': 1, 'its': 1, 'face': 1, 'has': 1, 'a': 3, 'friendly': 1, 'look': 1, 'bit': 1, 'small': 1, 'what': 1, 'i': 4, 'paid': 1, 'though': 1, 'think': 1, 'there': 1, 'might': 1, 'be': 1, 'other': 1, 'options': 1, 'that': 1, 'are': 1, 'bigger': 1, 'the': 1, 'same': 1, 'price': 1, 'arrived': 1, 'day': 1, 'earlier': 1, 'than': 1, 'expected': 1, 'so': 1, 'to': 2, 'play': 1, 'with': 1, 'myself': 1, 'before': 1, 'gave': 1, 'her': 1}

闖關(guān)任務(wù):Vscode連接InternStudio debug筆記

作業(yè)內(nèi)容

打開vscode安裝python插件,安裝后即可打斷點和debug
在這里插入圖片描述
在此處打上斷點,然后點擊run and debug,觀察分詞情況
在這里插入圖片描述
左上角可以看到運行這一步之前的變量的值,可以看到分詞沒啥問題,點擊繼續(xù)執(zhí)行
在這里插入圖片描述
debug結(jié)束
在這里插入圖片描述

Git

任務(wù)1: 破冰活動:自我介紹

作業(yè)內(nèi)容

自我介紹

任務(wù)2: 實踐項目:構(gòu)建個人項目

作業(yè)內(nèi)容

個人項目

http://www.risenshineclean.com/news/22297.html

相關(guān)文章:

  • 企業(yè)名錄搜索軟件 2022seo推廣軟件怎樣
  • 網(wǎng)站建設(shè)管理視頻超級seo外鏈
  • 南昌網(wǎng)站優(yōu)化公司天津百度seo代理
  • 完善酒店網(wǎng)站建設(shè)性價比高seo排名優(yōu)化的
  • 深圳做網(wǎng)站知名排行發(fā)廣告平臺有哪些免費
  • 上海英文網(wǎng)站制作seo怎么發(fā)外鏈的
  • 網(wǎng)站建設(shè)服務(wù)器都有哪些百度網(wǎng)址
  • 懷化網(wǎng)站建設(shè)企業(yè)網(wǎng)絡(luò)軟文推廣案例
  • 蘭州網(wǎng)站做的好點的公司網(wǎng)站制作廠家有哪些
  • 電子商務(wù)網(wǎng)站開發(fā)形式有友情鏈接出售網(wǎng)
  • 建設(shè)企業(yè)網(wǎng)站需要哪些東西推廣渠道怎么寫
  • wordpress ip更換域名給你一個網(wǎng)站seo如何做
  • 電子商城開發(fā)網(wǎng)站建設(shè)百度一下主頁官網(wǎng)
  • 電子商務(wù)平臺知識產(chǎn)權(quán)保護管理seo引擎搜索網(wǎng)站關(guān)鍵詞
  • 做寵物網(wǎng)站賺錢嗎陜西seo主管
  • 企業(yè)網(wǎng)站建設(shè)網(wǎng)站優(yōu)化百度官方認證
  • 網(wǎng)易那個網(wǎng)站可以做字幕外貿(mào)網(wǎng)站建設(shè)設(shè)計方案
  • 制作一個app合肥百度搜索排名優(yōu)化
  • 網(wǎng)站優(yōu)化解決方案第一設(shè)計
  • 雄安網(wǎng)站建設(shè)多少錢優(yōu)化快速排名公司
  • 公司網(wǎng)站怎么做才能有官網(wǎng)二字新公司如何做推廣
  • 微課做動畫的網(wǎng)站鄭州seo培訓
  • 建立個人網(wǎng)站的方法nba最新交易新聞
  • 鄉(xiāng)鎮(zhèn)中心小學校園網(wǎng)站建設(shè)指南四川聚順成網(wǎng)絡(luò)科技有限公司
  • 重?c網(wǎng)站開發(fā)電腦優(yōu)化是什么意思
  • 合肥室內(nèi)裝修設(shè)計培訓seo排名優(yōu)化北京
  • 網(wǎng)站建設(shè)新手指南百度導航如何設(shè)置公司地址
  • 一品威客網(wǎng)官網(wǎng)靠譜嗎搜索引擎優(yōu)化簡稱
  • html櫻花飄落代碼seo免費工具
  • 好的做淘寶詳情頁的網(wǎng)站有哪些內(nèi)容貼吧友情鏈接在哪