IndentationError: unexpected indent
来源:互联网 发布:nba2k14流畅优化补丁 编辑:程序博客网 时间:2024/05/17 19:59
源代码:mail=tom:\n hello\n i am jack
print mail
\n表示换行,为了格式需要
File "D:/Python/Python ����/test.py", line 2
mail='tom:\n hello\n i am jack'IndentationError: unexpected indent
解决方法:mail之前不要有空格 print之前也不要有空格
结果如下:
tom:
hello
i am jack
0 0
- IndentationError: unexpected indent
- IndentationError: unexpected indent python
- IndentationError: unexpected indent python
- IndentationError: unexpected indent python
- IndentationError: unexpected indent
- IndentationError: unexpected indent python
- python:IndentationError: unexpected indent
- IndentationError: unexpected indent python
- IndentationError: unexpected indent
- IndentationError: unexpected indent
- IndentationError: unexpected indent python
- IndentationError: unexpected indent
- Python的IndentationError: unexpected indent
- python错误:IndentationError: unexpected indent
- python报"IndentationError: unexpected indent"
- Python错误IndentationError: unexpected indent
- Python3之"IndentationError: unexpected indent"错误
- python的IndentationError: unexpected indent python
- 有关react-native POST请求造成Network request failed解决方法
- 基于密度的聚类----DBSCAN算法使用(R语言)
- 【LeetCode-239】Sliding Window Maximum
- zoj 3211 dream city 贪心 dp和记忆化搜索
- 开发过程中使用到的脚本
- IndentationError: unexpected indent
- 如何解决ul无法撑开div高度的情况
- JS 数组去重
- java代理的几种方式
- Android 之 Animation
- caffe中对6种激活函数类的封装--Absval
- linux centos7 安装tomcat8
- Ubuntu安装USB无线网卡驱动
- Device and Viewport Size In JavaScript