zoukankan      html  css  js  c++  java
  • 2018年10月22日-Python day1

    希望有一个好的未来!!!

    执行一个.py文件只能在命令行模式执行,如果敲一个命令python hello.py,看到如下错误:

    ┌────────────────────────────────────────────────────────┐
    │Command Prompt                                    _ □ x │
    ├────────────────────────────────────────────────────────┤
    │Microsoft Windows [Version 10.0.0]                      │
    │(c) 2015 Microsoft Corporation. All rights reserved.    │
    │                                                        │
    │C:> python hello.py                                    │
    │python: can't open file 'hello.py': [Errno 2] No such   │
    │file or directory                                       │
    │                                                        │
    │                                                        │
    │                                                        │
    │                                                        │
    │                                                        │
    └────────────────────────────────────────────────────────┘

    小结

    在Python交互式模式下,可以直接输入代码,然后执行,并立刻得到结果。

    在命令行模式下,可以直接运行.py文件。

     
  • 相关阅读:
    控制翻转与容器
    构造函数传递参数
    bean属性检查
    tomcat源码阅读14
    Block Formatting Context
    IE 兼容性问题的处理
    JavaScript 的原型与继承
    IE 多版本测试工具 IETester
    callee,caller,call,apply
    HDOJ2175 汉诺塔IX
  • 原文地址:https://www.cnblogs.com/diandianchao/p/9831963.html
Copyright © 2011-2022 走看看