栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

【Python Learning Daily】Day3

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

【Python Learning Daily】Day3

        Today I find the web of CS50's class which I should take at the first time in python. The content is about VSC:Visual Studio Code for CS50. I click the linkage and my VSC code space has something that change like CS50 class's.

        Bascically, I will learn some terminal command:

        1)

        ls: list all of the files int your current folder.

        cp: allow you to copy a file from one place to another.

        mv: allow you to move file or really rename it from one name to another.

        rm: for remove, which allow you to delete a file.

        mkdir: make dir or mkdir which allow you to make a directory that is a folder.

        cd: which allow you to change directories from one folder to another.

        rmdir:which allow you to remove a directory.

        clear: clear your terminal window.

        2)

        ls 

        cd ''folder_name''/

        mv farewall.py ..

        ⬆️1·list all of the files int your current folder. 2· take  the ''folder_name''file. 3· move it to farewall.py .

        (dot,dot is a symbolic representation of whatever the parent directory is,no matter what its name is.)

        3)cd .. #Go back to parent directory.

        4)cd#you want to go back to the default dirctory in which you began when you logged in, just type CD then Enter.

        5)redir ''floder name'' #remove folder directly.

        6)Python can use the most mathmaticaly assign:                                                                <——> 

        7)Pythonic Expression:

        <——><——                 ---> ​​​​​​<——>

 

        8)match technique(similar like switch case in C).

        8.1

       

        8.2) _ is means NULL(C type) in Python

        

 

 

 

 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/1034012.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号