06 2017 档案

摘要:a[::-1] 反转 元组() a=(1,2,3,4) a[::-1]=(4,3,2,1) 列表[] b=[1,2,3,4] b[::-1] = [4,3,2,1] a[:-1] 切片 元组() a=(1,2,3,4) a[:-1] = (1,2,3) 列表[] b=[1,2,3,4] b[:-1] 阅读全文
posted @ 2017-06-29 17:45 乔胖胖 阅读(220) 评论(0) 推荐(0)
摘要:单独的python文件运行的时候 报错: 在shell脚本中,运行shell脚本命令;在Python命令行中,运行Python代码。然而,“python hello.py”是一个脚本命令,不是python代码。 因此,退出python命令行,直接cd到hello.py所在目录,运行python he 阅读全文
posted @ 2017-06-21 13:02 乔胖胖 阅读(16140) 评论(0) 推荐(0)
摘要:HTTP Status完整枚举 public enum HttpStatus { // 1xx Informational 1xx信息类的 继续 CONTINUE(100, "Continue"), //交换协议 SWITCHING_PROTOCOLS(101, "Switching Protoco 阅读全文
posted @ 2017-06-20 18:43 乔胖胖 阅读(2496) 评论(0) 推荐(0)