python输入
来源:互联网 发布:js 模块化框架 编辑:程序博客网 时间:2024/06/06 05:24
python3.0前后输入有区别
# -*- coding:UTF-8 -*-'''Created on 2015年10月25日@author: young'''year=input("input year")print 1+yeary=raw_input('raw_input year')print int(y)+1print y+1
打印
input year20152016raw_input year20152016Traceback (most recent call last): File "/Users/young/Documents/workspace_python/python1/src/输入.py", line 17, in <module> print y+1TypeError: cannot concatenate 'str' and 'int' objects
0 0
- python输入
- Python输入
- 【Python】 Python输入和输出
- python输入中文
- Python输入密码
- python 输入系统参数
- python 输入、输出、文件
- python格式化日期输入
- python 输入和输出
- Python初学之输入
- python输入和输出
- Python:命令行作为输入
- Python检查输入类型
- python控制台输入密码
- Appium Python 输入中文
- python从控制台输入
- python的输入参数
- python控制用户输入
- Sizeof() and Strlen()的区别-20151026
- python类型转换
- python列表
- 检查点
- 第18章 SQL优化
- python输入
- Java 多线程----synchronized关键字详解
- Leetcode -- Trapping Rain Water
- 第19章 优化数据库对象
- C语言整理-9
- python数学计算
- 第26章 Mysql日志(二进制日志和错误日志)
- ORA-01578 错误解决
- JS检测是否是手机浏览页面