python的这段代码,在我新建的py里能运行,但是在原来的py里运行就会出错,这是为什么?
#-*-coding:utf-8-*-#三个双引号用法print'''Thisisaverylongstring.Itcontinueshere.Andit'snotov...
# -*- coding: utf-8 -*-
# 三个双引号用法
print '''This is a very long string.
It continues here.
And it's not over yet.
"Hell,world!"
Still here.'''
#\n换行符
print '\n'
# 获取用户名:
name=raw_input("what is your name?")
print("Hello,"+name+"!")
raw_input("Press<enter>") 展开
# 三个双引号用法
print '''This is a very long string.
It continues here.
And it's not over yet.
"Hell,world!"
Still here.'''
#\n换行符
print '\n'
# 获取用户名:
name=raw_input("what is your name?")
print("Hello,"+name+"!")
raw_input("Press<enter>") 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询