摘要: import openpyxlfrom openpyxl.utils import coordinate_from_string,column_index_from_stringimport socketimport threadingports=[] #获取所有的要扫描的端口,并加入列表wb=op 阅读全文
posted @ 2019-06-14 17:37 变甜的柠檬小哥儿~ 阅读(2079) 评论(0) 推荐(0)
摘要: staus = False with open('user', 'r') as f: user = f.readlines()[0].strip() f.seek(8) pawd = f.readlines()[1].strip() def login(inner): def console(*args, **kwargs): global s... 阅读全文
posted @ 2018-12-25 10:02 变甜的柠檬小哥儿~ 阅读(124) 评论(0) 推荐(0)
摘要: a=1 b=2 if ab: print("Yes") elif a==b: print("第三") else: print("any") if 条件1: 自拍 elif 条件2: 蹦 else: 跳舞 # 单行注释 '''多行注释''' """ 多行注释 """ input() "abc" + "qwe"... 阅读全文
posted @ 2018-05-07 16:50 变甜的柠檬小哥儿~ 阅读(272) 评论(0) 推荐(0)
摘要: #dic={1:'alex','age':35,'hobby':{'girl_name':'铁锤','age':45},'is_handsome':True} # dic={'age':'alex','age':35,'hobby':{'girl_name':'铁锤','age':45},'is_handsome':True} # print(dic) #字 阅读全文
posted @ 2018-05-07 16:41 变甜的柠檬小哥儿~ 阅读(261) 评论(0) 推荐(0)
摘要: product_list=[ ('Mac',9000), ('kindle',800), ('tesla',900000), ('python book',105), ('bike',2000), ] saving=input('please input your money:') shopping_car=[] if saving.isdigit():... 阅读全文
posted @ 2018-05-07 16:32 变甜的柠檬小哥儿~ 阅读(137) 评论(0) 推荐(0)
摘要: _user ="alex" _passwd = "abc123" counter = 0 while counter <3: username = input("Username:") password = input("Password:") if username == _user and password == _passwd : print("We... 阅读全文
posted @ 2018-05-07 16:30 变甜的柠檬小哥儿~ 阅读(83) 评论(0) 推荐(0)
摘要: 字符格式化输出 占位符 %s s = string %d d = digit 整数 %f f = float 浮点数,约等于小数 数据运算 数据类型出初识 数字 整数 int(integer) 整型 长整型 in py3 已经不区分整型与长整型,统一都叫整型 in C int age 22 , lo 阅读全文
posted @ 2018-05-07 16:28 变甜的柠檬小哥儿~ 阅读(123) 评论(0) 推荐(0)
摘要: 在方括号中使用for循环 根据已有列表,高效创建新列表的方式。 列表解析是Python迭代机制的一种应用,它常用于实现创建新的列表,因此用在[]中。 语法: [expression for iter_val in iterable] [expression for iter_val in itera 阅读全文
posted @ 2018-05-07 16:10 变甜的柠檬小哥儿~ 阅读(124) 评论(0) 推荐(0)
摘要: 本节内容 操作系统发展历史 二进制 编码 ASSIC 每一个字符统一都需要8个bit来存储 计算机容量 1位 = 1bit 8bit = 1byte = 1字节 1024bytes = 1kbytes =1KB 1024个字符,小文档 ,几百k可以表示一张图片 1024KB = 1Million B 阅读全文
posted @ 2018-05-07 15:37 变甜的柠檬小哥儿~ 阅读(143) 评论(0) 推荐(0)
摘要: 基础篇 第一章 Python介绍、安装、使用 Python 简介 Python 安装 第一个Python程序 Python 解释器 字符编码与解码 动态语言与静态语言的区别 变量及简单数据类型 编码规范 第一章 Python介绍、安装、使用 Python语言介绍 说到Python语言,就不得不说一下 阅读全文
posted @ 2018-05-07 15:28 变甜的柠檬小哥儿~ 阅读(212) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示