博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
tips about python
阅读量:4309 次
发布时间:2019-06-06

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

  A string can be repeated several times by *:

1 'la' * 3 = 'lalala'

  Codes are divided into blocks by indention, so pay attention to your hands.

  Elseif is replaced by elif.

  A string on the first logical line of a function is the docstring for that function. Note that DocStrings also apply to modules and classes which we will learn about in the respective chapters.

  from module import object 

  You can output a list simply with:

1 list = [1, 2, 3, 4]2 print(list)

 

转载于:https://www.cnblogs.com/adera/p/6491562.html

你可能感兴趣的文章
Android手机总是提示:存储空间不足,解决方法
查看>>
MySQL 函数之求取一个表中的某个字段的中位数
查看>>
EntityFramework 更新数据库字段的三种方法
查看>>
hdu 1253 胜利大逃亡
查看>>
python异步编程之asyncio
查看>>
leetcode算法:Trim a Binar Search Tree
查看>>
Centos 编译安装bind错误
查看>>
C#多线程学习(一) 多线程的相关概念
查看>>
OC内存管理基础
查看>>
IOS同步下载
查看>>
IOS(http几种请求)
查看>>
iOS开源项目周报1215
查看>>
vue + multer 上传图片
查看>>
设计模式之五:单件模式(巧克力工厂锅炉 模拟流程)
查看>>
Javascript动画模拟
查看>>
phpcms公共函数库 总结
查看>>
innerHTML和innerText的区别
查看>>
P3594 [POI2015]WIL-Wilcze doły
查看>>
Android P @hide API Alert
查看>>
让你的saga更具有可伸缩性(Scaling NServiceBus Sagas)
查看>>