今天看了函数、模块、数据结构,整理一下。 函数:1、函数的局部变量,和C差不多,可以与函数外变量重名。2、在函数中若要用全局变量,则加global来声明。3、返回值默认为None。4、函数参数可以是默认的,默认的参数必须在后面;也可以再调用时不按顺序地指定参数的值。  模块:1、使用import mymodule导入mymodul            
                
         
            
            
            
            关于java8的方法引用今天偶然看到一段代码//首先有一个Studeng类 有一个静态方法,有个实例方法
   class Student{
   		class Student {
    private String name;
    public Student(){
    }
    public Student(String name){
        this.name =             
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2024-05-14 19:18:11
                            
                                92阅读
                            
                                                                             
                 
                
                                
                     
                                    
                             
         
            
            
            
            Python:  1. print()函数:打印字符串  2. raw_input()函数:从用户键盘捕获字符  3. len()函数:计算字符长度  4. format(12.3654,’6.2f’/’0.3%’)函数:实现格式化输出  5. type()函数:查询对象的类型  6. int()函数、float()函数、str()函数等:类型的转化函数  7. id()函数:获取对象的内存地址            
                
         
            
            
            
            1:方法1:方法的定义方法是个“黑匣子”,完成某个特定的应用程序功能,并返回结果方法定义类的某种行为(或功能), 是功能的实现记忆:方法五要素:修饰符,返回值类型,方法名,参数列表,方法体。 - 记住public void show(){
       System.out.println("姓名:" + name + ",年龄:" + age);
}方法中返回值介绍: 如果方法有返回值            
                
         
            
            
            
                俨然已经过去的那些岁月,360天有余。从来不曾停下脚步,不管是时钟的时针、分针、秒针,还是我那时而匆匆,时而迟疑的步伐。感谢我依然没有停下带有使命感的前进步伐,同时也遗憾有些事情依旧无法面对,有些纠缠依旧无法了结。            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2016-01-10 11:19:28
                            
                                751阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            # 使用Python朗读文本:Say
在当今这个信息快速传播的时代,音频内容的消费方式日益受到欢迎。通过朗读文本,我们不仅能提高信息的可达性,还能让信息传递更加生动。Python是一个强大的编程语言,其中有许多库可以帮助我们实现文本到语音(Text-to-Speech, TTS)功能。本文将介绍如何使用Python进行文本朗读,并给出相应的代码示例。
## 文本到语音(TTS)概述
文本到语            
                
         
            
            
            
            我自己在菜鸟学习时的记录,可以实现网页运行代码,讲的也很流畅检索目录标准数据类型Python数据类型转换Python运算符优先级剑指offer上面的一道:数学函数随机数函数三角函数数学常量4舍6入5看齐,奇进偶不进Python转义字符Python字符串运算符Python字符串格式化实例(Python 3.0+)Python 的字符串内建函数列表访问列表中的值实例(Python 3.0+)更新列表实            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2024-06-24 04:27:27
                            
                                36阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            java面向对象编程的四大特征:1、抽象2、封装3、继承4、多态 封装//职员
class Clerk
{
   public String name;
   //private私有的
   private int age;
   private float salary;
   
   public Clerk(String name,int age,float sal)
   {
             
                
         
            
            
            
                         
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2010-12-25 17:14:49
                            
                                252阅读
                            
                                                        
                                点赞
                            
                                                                             
                 
                
                             
         
            
            
            
            The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ... 1 is read off as "one 1" or 11.11 is read off as "two 1s" or 21.21 is read off as "one 2, then            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                            精选
                                                        
                            2015-06-15 15:57:21
                            
                                694阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11is read off as"tw...            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2013-10-12 12:51:00
                            
                                73阅读
                            
                                                                                    
                                2评论
                            
                                                 
                 
                
                             
         
            
            
            
            如题!            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2009-11-10 17:18:20
                            
                                415阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            HI!! 九海交易 www.jiuhai-369.com  贵金属交易资讯尽在其中!            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                            精选
                                                        
                            2014-04-03 16:21:15
                            
                                518阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11is read off as"tw...            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2014-11-18 10:18:00
                            
                                71阅读
                            
                                                                                    
                                2评论
                            
                                                 
                 
                
                             
         
            
            
            
            The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...
1 is read off as "one 1"
 or 11.11 is read off as "two 1s"
 or 21.            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2015-10-13 17:43:00
                            
                                64阅读
                            
                                                                                    
                                2评论
                            
                                                 
                 
                
                             
         
            
            
            
            问题:链接 The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, ... 1 is read off as "one 1" or 11. 11 is            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2017-07-25 12:04:00
                            
                                45阅读
                            
                                                                                    
                                2评论
                            
                                                 
                 
                
                             
         
            
            
            
            第一个博客,之前乌七八糟用过豆瓣。没写什么东西~倒是QQ空间还点更新。下            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2022-08-04 17:23:47
                            
                                56阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            题目大意1 is read off as “one 1” or 11. 11 is read off as “two 1s” or 21. 21 is read off as “one 2, then one 1” or 1211.解题思路纯考察思路题,遍历上层代码class Solution(object):    def count(self,s):        result = ''            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2021-06-16 19:43:51
                            
                                140阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            Count and SayThe count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11is r...            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2021-08-07 11:41:11
                            
                                114阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            Let’s call the string beautiful if it does not contain a substring of length at least 2, which is a p            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2021-08-04 23:21:35
                            
                                55阅读
                            
                                                                             
                 
                
                                
                    