作者noshare (zzz...)
看板Python
標題[問題] +號代表
時間Fri Sep 15 23:32:10 2017
下面是telnetlib的例子其中一段,
想請問 user 和password後面的加號是代表甚麼意思呢?
tn.read_until("login: ")
tn.write(user + "\n")
if password:
tn.read_until("Password: ")
tn.write(password + "\n")
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.249.96.46
※ 文章網址: https://www.ptt.cc/bbs/Python/M.1505489533.A.C1A.html
→ hutdris: 字串的串接 在user/password後面加一個換行 09/15 23:45
→ brightwish: python的特色 +可當連接運算 *可當複製運算 09/16 00:12
→ noshare: 謝謝樓上兩位~~ 09/24 15:19