找不到满足要求urllib的版本

时间:2018-05-12 08:03:48

标签: python install urllib

当我尝试在Python 2.715版本中安装urllib时,它提醒我

Could not find a version that satisfies the requirement urllib (from versions: )
No matching distribution found for urllib 

谁能帮我解决这个问题?非常感谢

1 个答案:

答案 0 :(得分:1)

默认情况下,此模块与Python打包在一起(请参阅docs)所以您只需要导入它:

<?php

    $equipment = array();

    // Simulated post data from form submit
    $_POST["equipment"]["tables"] = "8' Tables";
    $_POST["equipment"]["table_no"] = "6";
    $_POST["equipment"]["chairs"] = "Chairs";
    $_POST["equipment"]["chair_no"] = "6";
    $_POST["equipment"]["round_tables"] = "Round Table";
    $_POST["equipment"]["round_table_no"] = "6";
    $_POST["equipment"]["piping_drapes"] = "Piping Drapes";


    if ( isset($_POST['equipment']) ){
        $equipment['tables'] = isset( $_POST['equipment']['tables'] ) ? str_replace("'","", $_POST['equipment']['tables']) : '';
        $equipment['table_no'] = isset( $_POST['equipment']['table_no'] ) ? $_POST['equipment']['table_no'] : '';
        $equipment['chairs'] = isset( $_POST['equipment']['chairs'] ) ? $_POST['equipment']['chairs'] : '';
        $equipment['chair_no'] = isset( $_POST['equipment']['chair_no'] ) ? $_POST['equipment']['chair_no'] : '';
        $equipment['round_tables'] = isset( $_POST['equipment']['round_tables'] ) ? $_POST['equipment']['round_tables'] : '';
        $equipment['round_table_no'] = isset( $_POST['equipment']['round_table_no'] ) ? $_POST['equipment']['round_table_no'] : '';
    }

    $equipment = serialize($equipment);
    var_dump($equipment);
    var_dump(unserialize($equipment));

?>