【文件属性】:
文件名称:python_notes
文件大小:8KB
文件格式:ZIP
更新时间:2021-02-15 18:24:52
笔记
打印到控制台
print ( "Hello World!" )
# String Concatenation
print ( "Hello" + " " + "there" )
#Use \n for a new line
print ( "Hello \n there!" )
# > Hello
# > there!
输入()
input ( "A prompt for the user" )
# Usage:
print ( "Hello " + input ( "What is your name?" ))
# Console
# What is your name?Bob
# Hello Bob
下标
# The act of pulling out a particular element from a string
print ( "Hello" [ 4 ]) # r
【文件预览】:
python_notes-master
----docstrings.md(595B)
----data-types.md(1KB)
----random-module.md(1KB)
----function.md(1KB)
----SUMMARY.md(414B)
----mathematical-operations.md(620B)
----data-structure-array-list.md(1KB)
----README.md(708B)
----dictionary.md(812B)
----scope.md(1KB)
----conditional-operators.md(2KB)
----iteration.md(2KB)