GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • 莫烦PYTHON
  • 学习 ▾
  • 推荐学习顺序
  • 交互式学Python
  • 多进程 multiprocessing
  • 多线程 threading
  • 窗口视窗 Tkinter
  • 有趣的机器学习
  • 强化学习 Reinforcement Learning
  • 进化算法 Evolutionary Algorithm
  • Tensorflow
  • PyTorch
  • Theano
  • Keras

This view

  • Original page
  • New address

GeezerVison is showing mofanpy.com — import 模块 | 莫烦Python

  • 支持

📢

莫烦有新起点啦!「莫烦 x 无限可能」— 关于 AI、行业、产品、教育的经验思考,欢迎来新站看看 →

切换视频源:


« dictionary 字典 自己的模块 »

import 模块

作者: Huanyu Mao 编辑: 莫烦 发布于: 2016-01-01

学习资料:

  • 全套代码

import 的各种方法¶

import time 指 import time 模块,这个模块可以python自带,也可以是自己安装的,比如以后会用到numpy这些模块,需要自己安装。

方法二:import time as __,__下划线缩写部分可以自己定义,在代码中把time 定义成 t.

方法三:from time import time,localtime ,只import自己想要的功能.

方法四:from time import * 输入模块的所有功能


降低知识传递的门槛

莫烦经常从互联网上学习知识,开源分享的人是我学习的榜样。 他们的行为也改变了我对教育的态度: 降低知识传递的门槛。

我组建了微信群,欢迎大家加入,交流经验,提出问题,互相帮持。 扫码后,请一定备注"莫烦",否则我不会同意你的入群申请。

wechat
« dictionary 字典 自己的模块 »
    教程目录

    Python基础

      安装

    • 安装

      基本使用

    • print 功能
    • 基础数学运算
    • 变量 variable

      while 和 for 循环

    • while 循环
    • for 循环

      if 判断

    • if 判断
    • if else 判断
    • if elif else 判断

      定义功能

    • def 函数
    • 函数参数
    • 函数默认参数

      变量形式

    • 全局 & 局部 变量

      模块安装

    • 模块安装

      文件读取

    • 读写文件 1
    • 读写文件 2
    • 读写文件 3

      class 类

    • class 类
    • class 类 init 功能

      input 输入

    • input 输入

      元组, 列表, 字典

    • 元组 列表
    • list 列表
    • 多维列表
    • dictionary 字典

      模块

    • import 模块
      • import 的各种方法
    • 自己的模块

      其他

    • continue & break
    • try 错误处理
    • zip lambda map
    • copy & deepcopy 浅复制 & 深复制
    • threading 什么是多线程
    • multiprocessing 什么是多进程
    • 什么是 tkinter 窗口
    • pickle 保存数据
    • set 找不同
    • 正则表达式
    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.