摘要:
背景 写 python 的时候,基本都要加两个头部注释,这到底有啥用呢? #!usr/bin/env python # -*- coding:utf-8 _*- print("hello-world") python 头部注释的作用 头注释并不是为代码而服务,更多是被系统或解释器所调用 会告诉系统 阅读全文
posted @ 2021-07-18 18:24
小菠萝测试笔记
阅读(5305)
评论(8)
推荐(8)
摘要:
前言 字符串是编程中最重要的数据类型,也是最常见的 字符串的表示方式 单引号 ' ' 双引号 " " 多引号 """ """" 、 ''' ''' print("hello world") print('hello world') print("""hello world""") # 输出结果 he 阅读全文
posted @ 2021-07-18 17:33
小菠萝测试笔记
阅读(2470)
评论(1)
推荐(2)
摘要:
Number 数字,是一个大的分类,细分四小类 整数:int 浮点数:float 布尔:bool 复数:complex int 的栗子 print(type(-1)) print(type(1)) print(type(-999999999999999)) print(type(9999999999 阅读全文
posted @ 2021-07-18 14:55
小菠萝测试笔记
阅读(2807)
评论(0)
推荐(2)

浙公网安备 33010602011771号