有人能告诉我python中的enter键是什么吗?

2024-04-28 21:09:18 发布

您现在位置:Python中文网/ 问答频道 /正文

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”),并且我已经尝试打印(“)。两者都不起作用。有人能告诉我:)


Tags: toimageyousendconfigwhichinputnet