如何翻譯英文文章

原則

在這裏插入圖片描述

ES篇

  • Elasticsearch can be quickly started for development or testing use with the following command
    翻譯:可以使用以下命令快速啓動Elasticsearch 以進行開發或測試使用
    分析:
    中文表達 更青睞於主動形態
    with 語句做狀語應該放在句首or句尾<看句子通順與否>
    for 表目的,爲了。。。

FLASK篇

  • the function to call when serving a request to the provided endpoint
    翻譯: 響應一條已提供端點的請求時,要調用相應的視圖函數
    分析:
    to :。。。的。。。
    serving a request:視圖函數出現的原因,就是要服務某個請求,換句話說就是響應請求
    endpoint ------ the endpoint for the registered URL rule<已註冊URL規則的端點>. Flask itself assumes the name of the view function as endpoint

python 源碼篇

  • The.__next__() method continues until <直到。。。爲止>the shortest iterable in the argument sequence is exhausted <迭代結束>
  • Join two or more pathname components, inserting ‘/’<正斜槓> as needed<根據需要>.
    If any component is an absolute path, all previous path components will be discarded. An empty last part<形參列表的最後一個參數> will result in a path that ends with a separator.
# python 控制檯
te=os.path.join('/key',"c:/abc",'cdf')
print(te)  # c:/abc\cdf

te  # 'c:/abc\\cdf'  #linux, win10 都可以訪問反斜槓,正斜槓結合的路徑

os.path.join('/key',"c:/abc",r'') 'c:/abc\\'
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章