[ 每日一课】 Python官方文档 1 -- 简介
来源:互联网 发布:centos搭建代理服务器 编辑:程序博客网 时间:2024/05/21 07:11
Python简介:
1. 由 Guido van Rossum在1989年编写的一个编程语言。优雅, 明确, 简单。
2. 适合开发网络应用, 小工具
3. 解释型语言, 没有编译和链接, 可以节省程序开发过程中的大量时间
4. 缺点: 速度慢, 不能加密。
Python 格式
缩进区分
单行注释: #
编码: #-*- coding: utf-8 -*-
Python输入/输出
print("hello, world"), print('hello, world')
print('this', 'is', 'a', 'new', 'world')
print(‘%s', %num)
input([prompt])
Notes:
1. Python 区分大小写。
2. Python3.3以后, input()和raw_input()合并, If the prompt argument is present, it is written to standard output without a trailing newline. The function then reads a line frominput, converts it to a string
3. 参数格式化输出
- #%x --- hex 十六进制
- #%d --- dec 十进制
- #%o --- oct 八进制
- #%s --- 字符串
- #%f --- float 浮点数
0 0
- [ 每日一课】 Python官方文档 1 -- 简介
- 【每日一课】Python官方文档- --- 2 (数据类型)
- 【每日一课】Python 官方文档 3 -- 内置数据类型
- 【每日一课】 Python 官方文档 4 --- 流程控制
- 【每日一课】Python官方文档 5 --- 函数初步
- [每日一课】 Python官方文档--- 函数进阶
- iOS每日一读官方文档01
- iOS每日一读官方文档02
- reactor官方文档译文(1)Reactor简介
- 《Spark Python API 官方文档中文版》 之 pyspark.sql (一)
- python官方文档
- Python unittest 官方文档
- Python官方文档结构图
- python官方文档网址
- MyBatis官方文档-1.简介
- 《Redis官方文档》Redis简介
- hadoop2官方文档中文翻译(1)---Apache Hadoop 2 简介
- iCarousel 1.8.1版本简介(官方文档翻译)
- 一个坑爹的问题,js注释掉夹杂的el表达式页面不显示(代码颜色坑了我)
- ubuntu15.10 手动安装最新Nvidia显卡驱动
- Android学习笔记五之Service
- 二分查找(递归与非递归实现)
- shape 圆角
- [ 每日一课】 Python官方文档 1 -- 简介
- 图解HTTPS、GET和POST
- nginx配置详解之main模块
- Linux kernel中断子系统之(五):驱动申请中断API
- OkHttp学习总结
- 剑指offer——整数中1出现的次数
- Springer LNCS 计算机科学投稿论文模板下载 Information for Authors of Computer Science Publications
- RSA使用总结(ios,openssl)
- 单词接龙 WordsCanRange --欧拉回路和欧拉路的应用