上一页 1 ··· 3 4 5 6 7 8 下一页

2019年1月10日

列表简介

摘要: #从列表中删除元素 del motorcycles[0] pop() #弹出。删除列表中最后一个元素,使用被删除的元素,应用场景:获取被干死一个外星人坐标,并在这个坐标位置显示爆炸效果。 pop(索引值) #删除索引位置的值 remove() #根据值删元素,如果列表中出现多次,只能删除第一个 so 阅读全文

posted @ 2019-01-10 21:47 winecork 阅读(111) 评论(0) 推荐(0) 编辑

变量和简单数据类型

摘要: 变量: 1.只能包含字母、数字和下划线。字母和下划线开头; 2.不能包含空格; 3.不要将关键字和函数名做变量名; 4.简短有描述性; 5.慎用小写字母l(L)和大写O 注释符号 # python之禅 阅读全文

posted @ 2019-01-10 20:38 winecork 阅读(127) 评论(0) 推荐(0) 编辑

配置编辑器geany

摘要: 安装geany编辑器后,“文件”-“另存为”- “生成”-“设置生成命令”- Compile:C:\Python37\python -m py_compile "%f" Execute:C:\Python37\python "%f" 确定。 写入: 按F5执行,结果如下: 阅读全文

posted @ 2019-01-10 15:21 winecork 阅读(423) 评论(0) 推荐(0) 编辑

2018年11月15日

linux删除多文件

摘要: 问题:删除多文件报错: #cd /home/bmc/Patrol3/Linux-2-6-x86-64-nptl/remote #rm -rf * -bash: /bin/rm: Argument list too long 原因: 系统限制,命令getconf ARG_MAX查看当前限制 方法1: 阅读全文

posted @ 2018-11-15 20:08 winecork 阅读(185) 评论(0) 推荐(0) 编辑

2018年8月29日

eNSP交换路由基础

摘要: 1 要求: 2 3 1.保证各节点正常通信(可ping通) 4 5 2.可以telnet到AR1 6 7 步骤: 8 9 PC1: 10 11 IP address:10.0.0.3 12 13 Mask:255.255.255.0 14 15 gateway:10.0.0.1 16 17 PC2: 18... 阅读全文

posted @ 2018-08-29 23:47 winecork 阅读(1389) 评论(0) 推荐(0) 编辑

2018年6月29日

NTP centOS6.5

摘要: server: 编辑文件/etc/ntp.conf 添加如下 server IP prefer #主服务器 peer IP #备服务器 保存退出 启停: #/etc/init.d/ntpd start 系统自动启动 #chkconfig --list|grep ntp #chkconfig --le 阅读全文

posted @ 2018-06-29 00:04 winecork 阅读(103) 评论(0) 推荐(0) 编辑

2018年4月26日

shell脚本之lftp上传

摘要: #!/bin/bash# Upload HW cdr to ESB by FTP# wirter by HanBing TEL:local=/opt/NMSAPP/business/hwbill/tarFile/yesterday=`date -d "1 day ago" +"%Y%m%d"` cd 阅读全文

posted @ 2018-04-26 11:31 winecork 阅读(709) 评论(0) 推荐(0) 编辑

2017年11月16日

进度条

摘要: import sys,time for i in range(20): sys.stdout.write("#") sys.stdout.flush() time.sleep(0.1) 阅读全文

posted @ 2017-11-16 18:51 winecork 阅读(65) 评论(0) 推荐(0) 编辑

2017年9月19日

maketrans与translate函数

摘要: ccbba 阅读全文

posted @ 2017-09-19 16:54 winecork 阅读(121) 评论(0) 推荐(0) 编辑

2017年9月3日

使用pip下载/安装python模块

摘要: pip安装pyperclip模块 阅读全文

posted @ 2017-09-03 18:05 winecork 阅读(256) 评论(0) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7 8 下一页

导航