摘要: 1、yum 2、date 3、logout\reboot\shutdown 4、cd\pwd 5、mkdir\man\touch\ls 6、passwd/修改密码 7、man/有9章 8、man 5 passwd 9、ls ls/ls -a/ls -l/ls -lh/ls -lht ls #查看文件 阅读全文
posted @ 2020-10-21 17:46 sphoia 阅读(145) 评论(0) 推荐(0)
摘要: 基本快捷键的使用(有时间整理下linux的基本常用的快捷键) (1)Tab,补充命令 不用输入完整的命令,输入命令前几个字母后Tab键,会自动补全命令提示。 (2)移动光标命令 Ctrl+A:移动光标到开头 Ctrl+E:移动光标到结尾 Ctrl+F:往光标后面移动一个字符 Ctrl+B:往光标前面 阅读全文
posted @ 2020-10-21 12:12 sphoia 阅读(98) 评论(0) 推荐(0)
摘要: 简单例举自己常用的字符串方法,等有时间在整理更新#重要的常用的字符串方法 a='123{}' a.count('1') a.capitalize() a.startswith('1') a.find('1') a.format('haha') a.upper() a.lower() a.strip( 阅读全文
posted @ 2020-10-20 12:21 sphoia 阅读(34) 评论(0) 推荐(0)
摘要: 记录一次事故: 如下代码: #!/usr/bin/python while(True): print("1") 能正常运行,能正常关闭cmd 而如下代码: #!/usr/bin/python while(True): print("\a\a\a\a\a\a\a\a") 使用命令行运行后,能听到Win 阅读全文
posted @ 2020-10-19 15:10 sphoia 阅读(558) 评论(0) 推荐(0)
摘要: 最近新总结: 字符串是python中常见的数据类型,常见是因为平时用的最多 python创建变量很简单,不需要像C语言指明数据类型,那么python定义string也同样简单 var1="name" var2="KaoLa" Python 字符串 字符串是python中常见的数据类型,常见是因为平时 阅读全文
posted @ 2020-10-19 13:06 sphoia 阅读(135) 评论(0) 推荐(0)