Python

作者: 苏xx | 来源:发表于2018-08-11 10:49 被阅读42次

1.将字符串 'k:1|k1:2|k2:3|k3:4' 转换成字典{'k': '1', 'k1': '2', 'k2': '3', 'k3': '4'}


2。打印99乘法表


3.冒泡排序


4.字符串逆序

a = "abcdefg"

1.切片 a[::-1]

2.t = list(a)

t.reverse  

"".join(t)

相关文章

网友评论

      本文标题:Python

      本文链接:https://www.haomeiwen.com/subject/oayavftx.html