Results 1 to 2 of 2

Thread: html+python ช่วยหน่อยครับ

  1. #1
    Anonymous
    Guest


    html+python ช่วยหน่อยครับ

    ผมต้องการให้มีการสร้าง link เมื่อกดไปแล้วให้มีการส่งค่าออกไป downC=0.1

    -

    แล้วนำ downC ไปใช้โดยทำการปรับ contrast

    def (downC='')
    im = Image.open("D:Kingimg_1_5.jpg").convert("L")
    enh = ImageEnhance.Contrast(im)

    enh.enhance(downC).save("D:Kingimg_1_1.jpg" , quality=85)

    คำถามของผมคือมีวิธีไหนที่จะทำให้ ค่าของ downC สามารถเก็บค่าที่เปลียนแปลง เมื่อทำการกดที่Html เช่น ตอนแรกกำหนด enh.enhance(0) แต่มีเมื่อมีการกด link ที่ html แล้วมีการเพิ่มจาก (0) เป็น 0.1 เมื่อกดครั้งต่อไปก็เป็น 0.2
    ช่วยแนะนำหรือแสดงตัวอย่างให้หน่อยนะครับ ผมมั่วมาหลายวันแล้วครับ ???

  2. #2
    Junior Member
    Join Date
    Apr 2006
    Location
    Thailand
    Posts
    15


    ในความคิดผมอาจจะต้องใช้ XML เข้าช่วยครับ แต่ก็จะเพิ่มความยากขึ้นอีก(หลายเท่าตัว) แต่จิงๆ python ติดต่อ CGI พวก HTML , XML ก็ไม่ยากมาก ยังไงก็ลองดูนะครับ

Similar Threads

  1. Replies: 1
    Last Post: 23-12-2008, 10:47 AM
  2. Replies: 3
    Last Post: 27-04-2008, 12:35 AM
  3. ช่วยหน่อยครับ
    By Anonymous in forum IT problem consult
    Replies: 3
    Last Post: 18-10-2006, 02:16 AM
  4. ช่วยหน่อยครับ
    By hamesut in forum Symbian C++, J2ME, Brew,XHTML
    Replies: 0
    Last Post: 22-02-2005, 02:46 PM
  5. Replies: 3
    Last Post: 27-01-2004, 02:06 PM

Members who have read this thread : 0

Actions : (View-Readers)

There are no names to display.

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •