码迷,mamicode.com
首页 >  
搜索关键字:keyboard    ( 805个结果
故障小记录:yum 安装报错File "/usr/bin/yum", line 30 except KeyboardInterrupt, e:
发生原因: 由于yum是基于python的,之前安装我python3,当我修改了python命令的指向到python3之后就会发生这样的问题。 解决办法: 由于我当初想到可能以后还需要python2,所以还保留着python2的命令指向 所以只需要 vim /usr/bin/yum 然后在头部改一下... ...
分类:其他好文   时间:2018-02-24 20:51:47    阅读次数:315
十二、异常处理
1.常见异常处理 AttributeError 试图访问一个对象没有的树形,比如foo.x,但是foo没有属性x IOError 输入/输出异常;基本上是无法打开文件 ImportError 无法引入模块或包;基本上是路径问题或名称错误 IndentationError 语法错误(的子类) ;代码没 ...
分类:其他好文   时间:2018-02-09 23:53:00    阅读次数:156
python脚本应用中的检测:处理异常和触发异常
#!/usr/bin/python#coding:utf-8try:x=int(raw_input("请输入用户名:"))print3/xexceptKeyboardInterrupt:print"你输入了crtl+c,请重试"exceptEOFError:print"你输入了ctrl+d,请重试"exceptValueError:pri
分类:编程语言   时间:2018-02-09 15:28:17    阅读次数:213
放弃 Tightvnc, 选择 Tigervnc
构建headless vnc server ,我终于放弃了Tightvnc 基于以下原因: 1) 已知的Qt5的键盘映射问题,导致virtualbox 的使用出现困难 https://unix.stackexchange.com/questions/346107/keyboard-mapping-w ...
分类:其他好文   时间:2018-02-08 19:57:08    阅读次数:473
如何在win10上连接苹果无线键盘
用电脑自带的步骤记录器记录的过程如下: Step 1: 用户在"添加设备 (按钮)"上左键单击; Step 2: 用户在"Apple Wireless Keyboard (文本)"上左键单击; Step 3: 用户在"下一步(N) (按钮)"上左键单击; Step 4: 用户在"或者,尝试在它上面输 ...
分类:移动开发   时间:2018-02-03 16:07:14    阅读次数:5821
Python3 异常检测
1、标准异常 AssertionError 断言语句(assert)失败 AttributeError 尝试访问未知的对象属性 EOFError 用户输入文件末尾标志EOF(Ctrl+d) FloatingPointError 浮点计算错误 GeneratorExit generator.close ...
分类:编程语言   时间:2018-02-02 21:51:16    阅读次数:392
UVa10082 -- WERTYU
10082 WERTYU A common typing error is to place the hands onthe keyboard one row to the right of the correctposition. So ‘Q’ is typed as ‘W’ and ‘J’ is ...
分类:其他好文   时间:2018-02-01 23:12:31    阅读次数:220
浙南联合训练赛20180129
数独和dij卡了时间 A - Keyboard CodeForces - 474A Our good friend Mole is trying to code a big message. He is typing on an unusual keyboard with characters ar ...
分类:其他好文   时间:2018-01-30 19:54:21    阅读次数:185
ubuntu 安装搜狗输入法
1 下载安装包(一般是64位的): https://pinyin.sogou.com/linux/ 2 sudo add-apt-repository ppa:fcitx-team/nightly 3 sudo apt-get update 4 sudo apt-get -f install 5 s ...
分类:系统相关   时间:2018-01-30 17:06:54    阅读次数:217
python实战===一键刷屏
#当按键q的时候,自动输入 “大家好!”并回车键发送!from pynput import keyboard from pynput.keyboard import Key, Controller kb = Controller() def on_release(key): try: if key.... ...
分类:编程语言   时间:2018-01-28 12:53:25    阅读次数:202
805条   上一页 1 ... 25 26 27 28 29 ... 81 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!