摘要:        
format是字符串内嵌的一个方法,用于格式化字符串。以大括号{}来标明被替换的字符串。 它通过{}和:来代替%。 1、基本用法1. 按照{}的顺序依次匹配括号中的值s = "{} is a {}".format('Tom', 'Boy')print(s) # Tom is a Boy s1 = "    阅读全文
posted @ 2022-10-23 22:49
菜鸟&码农
阅读(15122)
评论(0)
推荐(0)
        
            
        
        
摘要:        
Python 3.9.10, Window 64bit 警告:ParserWarning: Falling back to the 'python' engine because the 'c' engine does not support regex separators (separators    阅读全文
posted @ 2022-10-23 19:52
菜鸟&码农
阅读(205)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号