firmware = input("which image would you like to upload?")
if firmware == 1:
net_connect.send_config_set("wr")
net_connect.send_config_set(" copy tftp://cisco@10.36.50.60/s2t54-ipservicesk9-mz.SPA.152-1.SY6.bin bootdisk:")
print ("Press enter to confirm ")
# How can I send a enter command to the shell
很抱歉,我已经调整了帖子,但是我已经在需要发送enter键的地方发表了评论。我已经尝试打印(“\n”),并且我已经尝试打印(“)。两者都不起作用。有人能告诉我:)
您可以这样做:
input("Press the enter key to continue.. ")
把这个放在你想确认或暂停的地方
相关问题 更多 >
编程相关推荐