- 博客(3)
- 收藏
- 关注
原创 python lesson 2
append insert, You can insert "Art", and insert courses_2( courses_2 = [ ]) insert(0, courses_2); extend pop remove poped=courses.pop()= what has been removed. reverse sort(can combine with r...
2018-07-16 23:34:12 207
原创 python基础的第一课
string;要是有“在句子里,外面用‘ ’要是有‘ ‘在句子里,外面用” "号或者加一个\符号,使那一个符号失效。原来就是用message = '{}, {} . Welcome!'.format(greeting, name)新的东西:f‘{greeting} {name.upper()}’message = greeting + name + ' .Welcome'...
2018-07-14 22:06:16 142
转载 Python学习第一个程序:python第一个程序hello.py提示出现File "<stdin>",line 1错误
程序仅含有一句print("hello,world"),但是报错。原因: 在shell脚本中,运行shell脚本命令;在Python命令行中,运行Python代码。 然而,“python hello.py”是一个脚本命令,不是python代码。 因此,退出python命令行,直接cd到hello.py所在目录,运行python hello.py,即可。 若...
2018-07-14 18:08:02 1781
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人