zoukankan
html css js c++ java
python元组 (包括方法)
元组
1,俗称:不可变的列表
只能查看,不能增删改
2,方法:
len() index() count()
3,儿子不能改,孙子能改
tu = (1,2,[3,4,5]) # 里面的列表能改
4,当元组只有一个元素时:
tu=(2,) 元素后面一定要记得加,否则和元素类型相同,多个元素不用加,
5,元组整体可以被删除
del tu
查看全文
相关阅读:
HDU 1716 排列2
HDU 3405 World Islands
HDU 5624 KK's Reconstruction
HDU 2689 Tree
UVA 12075 Counting Triangles
UVA 11100 The Trip, 2007
[USACO 2004DEC] Navigation Nightmare
[USACO 2017DEC] Barn Painting
[Usaco2017 Dec] A Pie for a Pie
[USACO 2017DEC] Greedy Gift Takers
原文地址:https://www.cnblogs.com/zuohangyu123/p/11775462.html
最新文章
HDU 4667 Building Fence(求凸包的周长)
poj 2079 Triangle (二维凸包旋转卡壳)
poj 2187 Beauty Contest(二维凸包旋转卡壳)
关于math头文件
UVA 10652 Board Wrapping(二维凸包)
倒置函数reverse的用法
C++学习27 用全局函数重载运算符
C++学习26 运算符重载的概念和语法
C++学习25 纯虚函数和抽象类
C++学习24 虚析构函数
热门文章
C++学习23 虚函数详解
C++学习22 多态的概念及前提条件
C++学习21 基类和派生类的赋值
C++学习20 虚基类详解
C++学习19 类的多继承
C++学习18 派生类的析构函数
HDU 2017 Multi-University Training Contest
Codefroces Educational Round 26 837 D. Round Subset
Codefroces Educational Round 26 837 B. Flag of Berland
Codefroces Educational Round 26 837 C. Two Seals
Copyright © 2011-2022 走看看