python3字符串拼接_Python3基础 str + 字符串变量拼接
?
???????Python : 3.7.0
?????????OS : Ubuntu 18.04.1 LTS
????????IDE : PyCharm 2018.2.4
??????Conda : 4.5.11
???typesetting : Markdown
?
code
[email?protected]:~$ source activate py37
(py37) [email?protected]:~$ ipython
Python 3.7.0 (default, Jun 28 2018, 13:15:42)
Type ‘copyright‘, ‘credits‘ or ‘license‘ for more information
IPython 6.5.0 -- An enhanced Interactive Python. Type ‘?‘ for help.
In [1]: hello_str = "hello"
In [2]: world_str = "world"
In [3]: print(hello_str + world_str)
helloworld
In [4]: exit
(py37) [email?protected]:~$ source deactivate
[email?protected]:~$
?
resource
[文檔] docs.python.org/3
[規(guī)范] www.python.org/dev/peps/pep-0008
[規(guī)范] zh-google-styleguide.readthedocs.io/en/latest/google-python-styleguide/python_language_rules
[源碼] www.python.org/downloads/source
[ PEP ] www.python.org/dev/peps
[平臺(tái)] www.cnblogs.com
[平臺(tái)] gitee.com
?
Python具有開(kāi)源、跨平臺(tái)、解釋型、交互式等特性,值得學(xué)習(xí)。
Python的設(shè)計(jì)哲學(xué):優(yōu)雅,明確,簡(jiǎn)單。提倡用一種方法,最好是只有一種方法來(lái)做一件事。
代碼的書(shū)寫(xiě)要遵守規(guī)范,這樣有助于溝通和理解。
每種語(yǔ)言都有獨(dú)特的思想,初學(xué)者需要轉(zhuǎn)變思維、踏實(shí)踐行、堅(jiān)持積累。
原文:https://www.cnblogs.com/xingchuxin/p/10427377.html
總結(jié)
以上是生活随笔為你收集整理的python3字符串拼接_Python3基础 str + 字符串变量拼接的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 小班美术教案《水果上色》反思
- 下一篇: pdg文件怎么打开_pdg是什么格式