07 2018 档案
摘要:#输出99乘法表 for i in range(1,10): for j in range(1,i+1): print(str(j)+'*'+str(i),end=' ') if j==i: print('\n',end='') #输出指定长、宽的长方形 c=input('请输入长:') k=input('请输入宽:') i...
阅读全文
摘要:#猜数字 import random num_rd=random.randint(0,100) count=1 while 1100): print('数字超出范围了,重新输入') elif num<num_rd: print('猜小了') else: print('猜大了') eli...
阅读全文
摘要:在接收raw_input方法后,判断接收到的字符串是否为数字 例如: str = raw_input("please input the number:") if str.isdigit(): 为True表示输入的所有字符都是数字,否则,不是全部为数字 str为字符串str.isalnum() 所有
阅读全文
摘要:>>> student={"100":"zhansan","aihao":["football","music"]}>>> student{'100': 'zhansan', 'aihao': ['football', 'music']}>>> student_copy=student.copy()
阅读全文
摘要:a="i like {0:10} and {1:>10} end".format("python","java") b="i like {0:10} and {1:^10} end".format("python","java") c="i like {0:^10} and {1:^10} end"
阅读全文
摘要:>>> s=" 333 ">>> s.strip()'333'>>> s=" 555 ">>> s.lstrip()'555 '>>> s.rstrip()' 555'>>> s=" 5,9, ">>> s.rstrip(",")' 5,9, '>>> a="abc">>>
阅读全文
摘要:VMware Workstation在windows环境中大家都会安装,最近公司有个需求是需要在CentOS环境中安装VMware Workstation,上官网查了下还真有Linux版本的,于是就开始研究了下怎么安装。 0x01 下载 到官网下载免费适用版本,地址:http://www.vmwar
阅读全文
摘要:有时候安装了vmwar-player,想再安装vmware-workstation,却提示一些古怪的消息(现在忘记具体是什么了)。只能先卸载再安装 首先你可以尝试常规卸载: Shell代码 sudo vmware-installer -u vmware-player Shell代码 Shell代码
阅读全文
摘要:最近又有兴趣在linux下搭建个虚拟机,于是去找了个VMWorkstation,安装的过程中报了两个错误 Gtk-Message: Failed to load module "pk-gtk-module": libpk-gtk-module.so: cannot open shared objec
阅读全文
摘要:查看日志文件, cat /tmp/vmware-xiuyuan/vmware-modconfig-9996.log | more在日志文件中有这么几行:Setting header path for 3.7.2-204.fc18.x86_64 to "/lib/modules/3.7.2-204.f
阅读全文
摘要:VMWare workstation Pro 14 For Linux key: (我使用的Linux 系统是 Ubuntu16.04, 64位 ) 镜像是官方网址下载的,你也可以自己去官方网址下载: (https://www.vmware.com/products/workstation-pro.
阅读全文
摘要:https://blog.csdn.net/u012605477/article/details/65627234
阅读全文
摘要:vnc启停方式:vncserver :1 ; vncserver -kill :1
阅读全文
摘要:原来是文档后缀名是.txt造成的,应该改成.py,疏忽了。。。
阅读全文

浙公网安备 33010602011771号