Hello Python
来源:互联网 发布:西古德森数据 编辑:程序博客网 时间:2024/06/05 11:03
- My first Python demo
>>> movies=["a","b","c"]
>>> print(movies[0])
a
>>> print(movies[1])
b
>>>
>>> print(movies)
['a', 'b', 'c']
>>> print(len(movies))
3
>>>
['a', 'b', 'c']
>>> print(len(movies))
3
>>>
- Python 的变量标示符没有类型
- Python定义变量为stirng类型后,可以tab查询可用的api
- for或者while循环语句后加:后,再写逻辑代码
- 定义的变量支持混合类型 movies=["a","b",1823,1234]
- 变量可以直接定义,不需要声明
>>> count =0
>>> while count<len(movies)
SyntaxError: invalid syntax
>>> count =0
>>> while count<len(movies)
SyntaxError: invalid syntax
>>> while count<len(movies):
print(movies[count])
count++
SyntaxError: invalid syntax
>>> while count<len(movies):
print(movies[count])
count=count+1
a
b
c
d
>>> while count<len(movies)
SyntaxError: invalid syntax
>>> count =0
>>> while count<len(movies)
SyntaxError: invalid syntax
>>> while count<len(movies):
print(movies[count])
count++
SyntaxError: invalid syntax
>>> while count<len(movies):
print(movies[count])
count=count+1
a
b
c
d
- hello,csdn,hello,python
- Hello Python
- Hello, Python!
- hello python!
- Hello Python!
- Hello Python
- Hello python
- Hello Python!
- Hello Python
- Hello, Python!
- Hello Python
- HELLO PYTHON
- Hello Python!!!
- ArcGIS Python Hello Python
- 【Python】1“Hello,Python!”
- python中的hello world
- Python 的Hello World
- Python hello world
- scons gtk
- erlang的Socket参数含义
- Java关键字和保留字
- ASCII,Unicode和UTF-8 区别与联系
- Android提交数据到服务器的两种方式四种方法
- Hello Python
- mysql 安装 sh
- 关于指针代替数组
- 研究:Google、Facebook等网站的技术发展历程
- 修改窗体客户区区域
- Windows 上 gvim + cscope
- JSP的内置对象详解
- understanding linux usb ehci device driver(1)
- Android 从本地服务器下载文件与解析过程详解(一)