![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
Java入门不如放弃
码出自己的精彩!
展开
-
Python简单的购物小程序
Python实现简单的购物小程序 源代码: product_list = [('Iphone',5800),('Mac Pro',9800),('Bike',800), ('Watch',10600),('Coffee',31),('Alex Python',120)] shopping = [] salary = input('Inpit your salar...原创 2019-03-26 17:12:21 · 776 阅读 · 0 评论 -
Python的字符串和字符操作
Python的字符和字符串操作 # -*- coding:utf-8 -*- # Author:Starhao name = "{name}ahao" print(name.capitalize())#首字母大写 print(name.count("a"))#统计字符个数 print(name.center(50,"-"))#规定字符串长度字符不够不全,字符串放中间可用于美化输出 prin...原创 2019-03-28 19:02:09 · 104 阅读 · 0 评论