GithubHelp home page GithubHelp logo

python's Introduction

python

brew install python3

语法

添加注释

#注释一行
'''
注释内容
'''
print('''
打印多行文本
也可靠它
''')

三引号有两个作用:多行注释和多行打印

�判断变量类型

type(xx)

数据类型转换

int() float() str()

条件判断

if num == 1:
  # 通过缩进表示内部代码块
  print()
elif num ==2:
  print()
else:
  print()

函数

def 函数名(参数1, 参数2, ...):
  代码块
  return 返回值

jupyter快捷键

【CTRL + P】打开 VS Code 的命令面板; 【Shift + Enter】运行当前 Cell; 【Esc】退出当前 Cell 的编辑状态,退出编辑状态之后可以用方向键上下移动 Cell

python's People

Contributors

rainnut avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.