區塊鏈技術Python(鏈遊)元宇宙系統開發程式詳細講解方案

Tg_StPv888發表於2023-01-30

Substrate並不完全適合每一個用例、digitacollection應用程式或專案。然而,如果你想建立一個區塊鏈,那麼Substrate可能是一個完美的選擇。


  為一個非常具體的用例定製


  能夠與其他區塊鏈連線和溝通


  可透過預定義的可組合模組元件進行定製


  能夠隨著時間的推移升級演變和改變


  Substrate是一個軟體開發工具包(SDK),專門為您提供所有區塊鏈的基本元件,使您能夠專注於製作使您的鏈獨特和創新的邏輯。與其他分散式賬本平臺不同,Substrate是。


  pythonmode是使用vim開發python的重要外掛。


  現將pythonmode的使用說明書英文版全文收錄如下:


  *pymode.txt**python-mode.txt**pymode**python-mode*


  ____ _ _ ____ _ _ _____ _ _ __ __ _____ ____ ____~(_(/)(_ _)()_()(_)(()___(/)(_)(_(___)~)___//)()_()(_)()((___))()(_)()(_)))__)~(__)(__)(__)(_)(_)(_____)(_)_)(_//_)(_____)(____/(____)~Version:0.8.1==============================================================================CONTENTS*pymode-contents*1.Intro.......................................................|pymode-intro|2.Common functionality.......................................|pymode-common|2.1 Python version...............................|pymode-python-version|2.2 Python indentation...................................|pymode-indent|2.3 Python folding......................................|pymode-folding|2.4 Vim motion...........................................|pymode-motion|2.5 Show documentation............................|pymode-documentation|2.6 Support virtualenv...............................|pymode-virtualenv|2.7 Run code................................................|pymode-run|2.8 Breakpoints.....................................|pymode-breakpoints|3.Code checking...............................................|pymode-lint|4.Rope support................................................|pymode-rope|4.1 Code completion..................................|pymode-completion|4.2 Find definition.................................|pymode-rope-findit|4.3 Refactoring................................|pymode-rope-refactoring|4.4 Undo/Redo changes.................................|pymode-rope-undo|5.Syntax....................................................|pymode-syntax|6.FAQ...........................................................|pymode-faq|7.Credits...................................................|pymode-credits|8.License...................................................|pymode-license|==============================================================================1.Intro~*pymode-intro*Python-mode is a vim plugin that allows you to use the pylint,rope,and pydoclibraries in vim to provide features like python code bug checking,refactoring,and some other useful things.This plugin allows you to create python code in vim very easily.There is noneed to install the pylint or rope libraries on your system.Python-mode contains all you need to develop python applications in Vim.Features:*pymode-features*-Support Python version 2.6+and 3.2+-Syntax highlighting-Virtualenv support-Run python code(``<leader>r``)-Add/remove breakpoints(``<leader>b``)-Improved Python indentation-Python folding-Python motions and operators(``]]``,``3[[``,``]]M``,``vaC``,``viM``,``daC``,``ciM``,...)-Code checking(pylint_,pyflakes_,pylama_,...)that can be run simultaneously(``:PymodeLint``)-Autofix PEP8 errors(``:PymodeLintAuto``)-Search in python documentation(``K``)-Code refactoring<rope refactoring library>(rope_)-Strong code completion(rope_)-Go to definition(``<C-c>g``for`:RopeGotoDefinition`)-And more,more...==============================================================================2.Common functionality~*pymode-common*This script provides the following options that can customizes the behavior ofPythonMode.These options should be set in your|vimrc|.Bellow shows the default values.Turn on the whole plugin*'g:pymode'*>let g:pymode=1 Turn off plugin's warnings*'g:pymode_warnings'*>let g:pymode_warnings=1Add paths to`sys.path`*'g:pymode_paths'*Value is list of path's strings.>let g:pymode_paths=[]Trim unused white spaces on save*'g:pymode_trim_whitespaces'*>let g:pymode_trim_whitespaces=1 Setup default python options*'g:pymode_options'*>let g:pymode_options=1 If this option is set to 1,pymode will enable the following options forpython buffers:>setlocal complete+=t setlocal formatoptions-=t if v:version>702&&!&relativenumber setlocal number endif setlocal nowrap setlocal textwidth=79 setlocal commentstring=#%s setlocal define=^s*\(def\\|class\)Setup pymode|quickfix|window*'g:pymode_quickfix_maxheight'**'g:pymode_quickfix_minheight'*>let g:pymode_quickfix_minheight=3 let g:pymode_quickfix_maxheight=6------------------------------------------------------------------------------2.1.Python version~*pymode-python-version*By default pymode looks for current python version supported in your Vim.You could choose prefer version,but value will be tested on loading.*'g:pymode_python'*>let g:pymode_python='python'Values are`python`,`python3`,`disable`.If value set to`disable`mostpython-features of**pymode**will be disabled.Set value to`python3`if you are working with python3 projects.You could use|exrc|------------------------------------------------------------------------------2.2 Python indentation~*pymode-indent*Pymode supports PEP8-compatible python indent.Enable pymode indentation*'g:pymode_indent'*>let g:pymode_indent=[]------------------------------------------------------------------------------2.3 Python folding~*pymode-folding*Fast and usual python folding in Vim.Enable pymode folding*'g:pymode_folding'*>let g:pymode_folding=1------------------------------------------------------------------------------2.4 Vim motion~*pymode-motion*Support Vim motion(See|operator|)for python objects(such as functions,class and methods).`C`—means class`M`—means method or function*pymode-motion-keys*============================================Key Command============================================[[Jump to previous class or function(normal,visual,operator modes)]]Jump to next class or function(normal,visual,operator modes)[M Jump to previous class or method(normal,visual,operator modes)]M Jump to next class or method(normal,visual,operator modes)aC Select a class.Ex:vaC,daC,yaC,caC(normal,operator modes)iC Select inner class.Ex:viC,diC,yiC,ciC(normal,operator modes)aM Select a function or method.Ex:vaM,daM,yaM,caM(normal,operator modes)iM Select inner function or method.Ex:viM,diM,yiM,ciM(normal,operator modes)============================================Enable pymode-motion*'g:pymode_motion'*>let g:pymode_motion=1------------------------------------------------------------------------------2.5 Show documentation~*pymode-documentation*Pymode could show documentation for current word by`pydoc`.Commands:*:PymodeDoc*<args>—show documentation Turns on the documentation script*'g:pymode_doc'*>let g:pymode_doc=1 Bind keys to show documentation for current word(selection)*'g:pymode_doc_bind'*>let g:pymode_doc_bind='K'------------------------------------------------------------------------------2.6 Support virtualenv~*pymode-virtualenv*Commands:*:PymodeVirtualenv*<path>--Activate virtualenv(path is related tocurrent working directory)Enable automatic virtualenv detection*'g:pymode_virtualenv'*>let g:pymode_virtualenv=1 Set path to virtualenv manually*'g:pymode_virtualenv_path'*>let g:pymode_virtualenv_path=$VIRTUAL_ENV------------------------------------------------------------------------------2.7 Run code~*pymode-run*Commands:*:PymodeRun*--Run current buffer or selection Turn on the run code script*'g:pymode_run'*>let g:pymode_run=1 Binds keys to run python code*'g:pymode_run_bind'*>let g:pymode_run_bind='<leader>r'------------------------------------------------------------------------------2.8 Breakpoints~*pymode-breakpoints*Pymode automatically detects available debugger(like pdb,ipdb,pudb)and usercan set/unset breakpoint with one key and without code checking and etc.Enable functionality*'g:pymode_breakpoint'*>let g:pymode_breakpoint=1 Bind keys>let g:pymode_breakpoint_bind='<leader>b'Manually set breakpoint command(leave empty for automatic detection)>let g:pymode_breakpoint_cmd=''==============================================================================3.Code checking~*pymode-lint*Pymode supports`pylint`,`pep257`,`pep8`,`pyflakes`,`mccabe`codecheckers.You could run several similar checkers.Pymode uses Pylama library for code checking.Many options like skip files,errors and etc could be defined in`pylama.ini`file or modelines.Check Pylama documentation for details.Pylint options(ex.disable messages)may be defined in`$HOME/pylint.rc`See pylint documentation.


  元宇宙共有五個獨特之處:


  1、沉浸式體驗:當你帶上虛擬現實VR眼鏡的一瞬間,你就彷彿到了另一個時空,周圍的一切從感知範圍內消失了。


  2、自由創造:在元宇宙裡,你可以藉助簡單易得的工具,天馬行空地進行創造。


  3、擁有與現實世界迥然不同的經濟系統。元宇宙中只有數字產品的創造、交換和消費,因此以實物商品為核心的傳統經濟學並不適用。元宇宙經濟以虛擬商品為核心,是數字經濟中最活躍、最具革命性的部分。


  4、社交網路極其強大。完善的社交網路是元宇宙的標配。元宇宙社交的核心是沉浸感,特別是到了虛實共生階段,對微信和QQ等社交成品來說,是降維打擊。


  5、擁有各異的文明形態,也就是人們常說的虛擬身份。


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/70016646/viewspace-2933260/,如需轉載,請註明出處,否則將追究法律責任。

相關文章