- 博客(9)
- 资源 (2)
- 收藏
- 关注
原创 Exercise18、19、20、218(自定义函数, 操作文件相关函数)
ex18.py ex19.py Can give function straight numbers, variable, math, combine math and variable. ex20.py ex20_test.py 1、current_file = open(input_file),print current_file ...
2018-04-30 10:45:38 172
原创 Exercise13、14、15(repr)
ex13.py 如果输入的参数不够会有以下报错: 1、argv : input on the command line, like 2、input( ) : using the keyboard while the script is running. 3、ls ex1*.py 4、 from sys import argv 5、repr( ) ex14.py...
2018-04-25 10:22:21 99
原创 Exercise10、11
ex10.py 1、Escape Sequences : 转义字符 2、\n : 换行 3、\t : tab 4、\\ : print \ 5、\"(') : print " or ' ex11.py 1、end=' ' : Tells print to not end the line with a new line. 2、input( ) : get ...
2018-04-24 21:30:01 162
原创 Exercise 4、5、6、7、8、9
ex4.py emmmm不用先定义变量名称,直接变量赋值一步到位。 ex5.py 1、have variable embedded in strings :f"Hello {somevar}"。 2、如果不加f,将直接打印{stuffs}。 3、round(): 四舍五入得一个整数。 4、{}里可以做算数运算。 ex6.py 1、.for...
2018-04-23 15:05:27 194
原创 Exercise 1、2、3
python ex1.py 1、不像C后面要加;号。 2、单、双引号效果一样。 3、单引号里面的双引号可以被打印(反过来亦可)。 SyntaxError: grammar error pound character、octothorpe、hash: #(comment) python ex2.py python ex3.py 1、print里可...
2018-04-22 10:53:44 365
转载 a list of commands
windows pwd : print working directory hostname : my computer's network name mkdir : make directory cd : change directory ...
2018-04-19 17:51:47 317
原创 Command Line Crash Course Day2
windows rmdir : remove directory rmdir <dir> pushd : push directory ( save where i am, then go here ) pushd i/love/qj popd : pop directory (takes the last ...
2018-04-19 17:38:49 115
原创 Command Line Crash Course Day1
Windows list of commands: pwd: print working directory mkdir: make directory (mkdir temp) ( mkdir temp/stuff ) ( mkdir "I Have Fun" ) cd: change directory...
2018-04-18 22:47:02 141
林轩田LearningFromData作业代码基石和技法
2019-04-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人