博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Python 学习2
阅读量:4677 次
发布时间:2019-06-09

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

1. It is different from "4 space" and "1 tab" in the python!!!

2. Use the commend "a in b" is a True of False commend. We use it to justice whether element "A" is in list "B"

 

Dictionarys:

1. Compare to list. The advantages of dictionary is that it is easier to find the right value which is corresponse to certain index or other value.

2. In the dictionary,we use {} curly brackets to define a dictionary.

3. In the dictionary, we use [] to add elements or search the dictionary.

 

Function:

1. return function have to be in the bracket ().

2. return makes the function more stable, and it always returns some variables which is not defined outside the function.

3. For some parameters, if the default value is True, so while calling the function, we do not need to write them down to make them True.

 

转载于:https://www.cnblogs.com/kingoscar/p/5925264.html

你可能感兴趣的文章
winform中真正的透明label
查看>>
(Dynamic Proxy)动态代理模式的Java实现
查看>>
sql三大范式
查看>>
关于TP5模板输出时间戳问题--A non well formed numeric value encountered
查看>>
js延迟加载
查看>>
如何在win 2008 server和win 7上add web site
查看>>
[Selenium]如何实现上传本地文件
查看>>
★不评价别人的生活,是一个人最基本的修养
查看>>
centos 7 下vnc弹出窗口太小解决方法
查看>>
SpringCloud Feign的分析
查看>>
使用MD5WithRSA来签名和验签(.NET)
查看>>
异常:This application has no explicit mapping for /error, so you are seeing this as a fallback.
查看>>
使用gifplayer操作gif的方法
查看>>
利用SOAtest建立自动化测试验证网站是否成功加载
查看>>
一些鲜为人知却非常实用的数据结构 - Haippy
查看>>
【C#】C#线程_I/O限制的异步操作
查看>>
Flask-SQLAlchemy
查看>>
kettle参数、变量详细讲解[转]
查看>>
C# - Generics
查看>>
.NET LINQ 转换数据类型
查看>>