随笔分类 - python
摘要:# 拼接字符串的6种方法总结: 1.自C语言的%方式 print('第 %d 种:' % 1) url = 'this is a %s and %s' print(url % ('dog', 'cat')) 2.format()拼接方式 print('第 %d 种:' % 2) url = 'thi
阅读全文
摘要:Python 基础 单行注释:# 多行注释:用多个 # 号,还有 ''' 和 """ # 第一个注释 # 第二个注释 ''' 第三注释 第四注释 ''' """ 第五注释 第六注释 """ 类型 数字 字符串 列表 == 数组 元组 == 不可变数组,并用() 字典 == map集合,key-val
阅读全文

浙公网安备 33010602011771号