2021年12月2日

学习python第n''''天——我在看笨办法学python(读写文件)

摘要: 这是所有的代码 from sys import argv sceipt, filename = argv print(f"We are going to erase {filename}.") print("If you don't want that , hit CTRL-C (^C).") pr 阅读全文

posted @ 2021-12-02 18:39 何奈时 阅读(106) 评论(0) 推荐(0)

学习python第n'''天——我在看笨办法学python(读取文件)

摘要: 这是读取文件的内容 This is stuff I typed into a file.It is really cool stuff.Lots and lots of fun to have in here. 这是代码 from sys import argv script, filename = 阅读全文

posted @ 2021-12-02 17:13 何奈时 阅读(72) 评论(0) 推荐(0)

学习python第n''天——我在看笨办法学python(提示和传递)

摘要: 这是所有的语言 from sys import argv script, user_name = argvprompt = '> ' print(f"Hi {user_name}, I'm the {script} script.")print("I'd like to ask you some q 阅读全文

posted @ 2021-12-02 12:03 何奈时 阅读(40) 评论(0) 推荐(0)

学习python第n'天——我在看笨办法学python(参数,解包,变量)

摘要: 这是所有的语言 from sys import argv#read the WYSS section for how to run this.#ex3.py是参数。# argv 是参数变量(argument variable)。#import的作用是调用参数特性,这些导入的特性称为模块(module 阅读全文

posted @ 2021-12-02 11:29 何奈时 阅读(113) 评论(0) 推荐(0)

学习python第n天——我在看笨办法学python(这是所有的输入和输出了)

摘要: 这是所有的语言 print ("Hello world!")print ("Hello again")print ("I like typing this.")print ("This is fun.")print ("Yay!Printing.")print ("I'd much rather y 阅读全文

posted @ 2021-12-02 11:23 何奈时 阅读(115) 评论(0) 推荐(0)

导航