博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Python的基本内置类型
阅读量:3605 次
发布时间:2019-05-20

本文共 246 字,大约阅读时间需要 1 分钟。

  1. Numbers: 1234, 3.1415, 999L, 3+4j, Decimal
  2. Strings: ’spam’, “guido’s”
  3. Lists: [1, [2, ‘three’], 4]
  4. Dictionaries: {’food’: ’spam’, ‘taste’: ‘yum’}
  5. Tuples: (1,’spam’, 4, ‘U’)
  6. Files: myfile = open(’eggs’, ‘r’)
  7. Other types: Sets, types, None, Booleans

转载地址:http://ywizn.baihongyu.com/

你可能感兴趣的文章
System.arraycopy()方法
查看>>
JAVA 基础学习之 数组加强和二位数组
查看>>
JAVA 基础学习之 面向对象-类和对象
查看>>
Manthan, Codefest 19 (open for everyone, rated, Div. 1 + Div. 2) (异或+规律)
查看>>
Codeforces Round #635 (Div. 2) D. Xenia and Colorful Gems(二分)
查看>>
Codeforces Round #423 (Div. 1, rated, based on VK Cup Finals) B. High Load(树的直径+贪心)
查看>>
Codeforces Round #638 (Div. 2) D. Phoenix and Science(数学+思维)
查看>>
Codeforces Round #576 (Div. 1) C. Matching vs Independent Set(思维好题)
查看>>
Codeforces Round #639 (Div. 2) D. Monopole Magnets(bfs+模拟)(恶心的阅读理解题)
查看>>
一分钟搞懂与、或、非、异或优先级!
查看>>
CodeBlocks无法编译的解决方案
查看>>
关于ZigBee的学习笔记1.0
查看>>
秒懂!用通俗的话讲解“ZigBee终端节点入网”过程
查看>>
完美解决:Ubuntu 12.04右键没有打开终端选项
查看>>
快速理解:memmove和memcopy的区别
查看>>
strsep函数详解
查看>>
秒懂之atoi()函数!
查看>>
一分钟快速理解:模拟信号和数字信号!
查看>>
MQTT之QoS
查看>>
【JavaWeb开发】"web应用程序的根目录"与"web站点的根目录"的分析
查看>>