#encoding=utf-8 import sys sum=0 for i in sys.argv[1:]: try: number=float(i) except: continue sum+=number print sum #encoding=utf-8 import sys letter_ ...
分类:
其他好文 时间:
2018-07-02 20:22:01
阅读次数:
126
import sys letter_count=0 for i in sys.argv[1:]: for j in i: # if j.isalpha(): if (j>="a" and j<="z") or (j>="A" and j<="Z"): letter_count+=1 print le ...
分类:
其他好文 时间:
2018-07-02 20:19:05
阅读次数:
141
一.HashMap的应用思路 使用: Map,Set集合,String的split切割方法 ,增强for循环 使用思路:为所有key创建容器,之后容器中存放对应value 二.实现示例代码 1.两个类,Letter类,类似于javaBean类型,Demo02测试类 2.Letter类 package ...
分类:
编程语言 时间:
2018-07-01 17:45:16
阅读次数:
131
Python读写excel的工具库很多,比如最耳熟能详的xlrd、xlwt,xlutils,openpyxl等。其中xlrd和xlwt库通常配合使用,一个用于读,一个用于写excel。xlutils结合xlrd可以达到修改excel文件目的。openpyxl可以对excel文件同时进行读写操作。 而 ...
分类:
其他好文 时间:
2018-06-30 21:21:08
阅读次数:
259
# -*- coding: utf-8 -*- # @Author : FELIX # @Date : 2018/6/30 9:20 from pypinyin import pinyin, lazy_pinyin, Style, load_phrases_dict, load_single_dic... ...
分类:
编程语言 时间:
2018-06-30 12:51:44
阅读次数:
682
伪元素 介绍常用的伪元素。 first-letter 用于为文本的首字母设置特殊样式。 例如: p:first-letter { font-size: 48px; } before 用于在元素的内容前面插入新内容。 例如: p:before { content: "*"; color: red; } ...
分类:
其他好文 时间:
2018-06-30 11:05:56
阅读次数:
155
问题描述: Given a string, we can "shift" each of its letter to its successive letter, for example: "abc" -> "bcd". We can keep "shifting" which forms the ...
分类:
其他好文 时间:
2018-06-29 01:17:37
阅读次数:
221
1.For varibale.camel scheme.the first word lowercase the first letter,then other words capitalize the first letter2.FOR class and function.Pascal sche ...
format 用法详解 format 用法详解 不需要理会数据类型的问题,在%方法中%s只能替代字符串类型 单个参数可以多次输出,参数顺序可以不相同 填充方式十分灵活,对齐方式十分强大 官方推荐用的方式,%方式将会在后面的版本被淘汰 format填充字符串 一 填充 1.通过位置来填充字符串 不需要 ...
分类:
编程语言 时间:
2018-06-25 10:56:40
阅读次数:
229