【Python Learning Daily】Day3_condition

        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

        

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值