摘要: 1、模块: sys: sys.path:打印环境变量路径 (自建模块一般安装在site-packages) os: os.system():打印不保存 os.popen():打印内存的地址 os.popen().read(): 打印保存的内容2、数据类型: int long float boolea 阅读全文
posted @ 2018-08-08 11:50 Dashuang 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 1 #!/usr/bin/env python 2 # -*- coding: utf-8 -*- 3 # Author:DaShuang.Gu 4 5 #思路: 6 #实现判断登录用户是否存在锁定文件user_lock中,如果存在提示并退出。 7 import os,sys 8 login_nam 阅读全文
posted @ 2018-08-07 16:05 Dashuang 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 1、python是什么语言 python一门动态解释性的强类型定义语言。 2、变量定义:变量名只能是 字母、数字或下划线的任意组合变量名的第一个字符不能是数字以下关键字不能声明为变量名['and', 'as', 'assert', 'break', 'class', 'continue', 'def 阅读全文
posted @ 2018-08-07 11:03 Dashuang 阅读(272) 评论(0) 推荐(0) 编辑