Navigation

    MemFireDB论坛

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    python连接操作数据库

    MemFireDB用户问答
    2
    2
    65
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      enhen last edited by

      python连接并对数据库进行增删改查的示例能否将版本更新至python3, 或者将其封装为Python库简化操作

      A 1 Reply Last reply Reply Quote 0
      • A
        admin @enhen last edited by

        @enhen 可以的哦,代码示例不用变动,只需要环境调整:
        python调整为Python3.6版本;
        python的客户端程序Psycopg;

        pip3 install flask-SQLAlchemy
        pip3 install psycopg2
        yum install -y python36-devel
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post