作者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://webptt.com/cn.aspx?n=bbs/Python/M.1505489533.A.C1A.html
1F:→ hutdris: 字串的串接 在user/password後面加一个换行 09/15 23:45
2F:→ brightwish: python的特色 +可当连接运算 *可当复制运算 09/16 00:12
3F:→ noshare: 谢谢楼上两位~~ 09/24 15:19