笔记
ppp17
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
linux CentOS 下 .rar
在这里下https://www.rarlab.com/download.htm原创 2021-06-03 14:42:34 · 103 阅读 · 0 评论 -
最近一次CentOS安装手记
配置的网络安装源 https://mirrors.163.com/centos/8.3.2011/isos/x86_64/原创 2021-05-31 17:23:06 · 170 阅读 · 0 评论 -
Python 3神一样的字符串格式
一、% 在%左边指定一个字符串(格式字符串),并在右边指定要设置其格式的值。 >>> format = "Hello, %s. %s enough for ya?" >>> values = ('world', 'Hot') >>> format % values 'Hello, world. Hot enough for ya?' ...原创 2019-12-08 20:01:28 · 199 阅读 · 0 评论 -
python字符串方法
1、center 方法center通过在两边添加填充字符(默认为空格)让字符串居中。 >>> "The Middle by Jimmy Eat World".center(39) ' The Middle by Jimmy Eat World ' >>> "The Middle by Jimmy Eat World".cen...原创 2019-04-21 22:28:15 · 180 阅读 · 0 评论 -
CentOS7下搭建seafile
一、使用 yum 安装 Python 及 MySQL: yum install python python-setuptools python-imaging python-ldap python-memcached MySQL-python mariadb mariadb-server 二、启动 MariaDB 服务并将期加入到启动项: systemctl start mariadb...原创 2019-04-27 09:31:19 · 2448 阅读 · 0 评论 -
列表、元组、字典、字典的基本操作、字典的方法
一、列表、元组、字典 []用来定义列表 ()用来定义元组 {}用来定义字典 1、函数tuple()它将一个序列作为参数,并将其转换为元组。如果参数 已经是元组,就原封不动地返回它。 >>> tuple([1, 2, 3]) (1, 2, 3) 2、函数list()它将一个序列作为参数(包括字符串),并将其转换为列表。 >&g...原创 2019-04-22 21:31:15 · 422 阅读 · 0 评论 -
python,print和import
1、print() >>> name = 'gumby' >>> salutation = 'mr.' >>> greeting = 'hello,' >>> print(greeting,salutation,name) hello, mr. gumby ...原创 2019-04-24 20:09:22 · 711 阅读 · 0 评论 -
python,神一般的赋值
一、同时(并行)给多个变量赋值:(序列解包或可迭代对象解包) >>> x, y, z = 1, 2, 3 >>> print(x, y, z) 1 2 3 可用于交换多个变量的值 >>> x, y = y, x >>> print(x, y, z) ...原创 2019-04-24 20:50:42 · 315 阅读 · 0 评论
分享