Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

307
Views
Cómo hacer que un texto actúe como un enlace en python

Cómo hacer que un texto actúe como un enlace en python. Estoy usando pycharm que admite enlaces, por lo que no es un duplicado de la aplicación de consola .net con hipervínculos. lo que quiero hacer es dar un enlace y texto a la función (no hay problema si es más complicado que esto), por ejemplo: quiero hacer

 T = class.methodname(link,text) print(T)

y si es posible, quiero poder copiar esto y aún así mantener sus capacidades como

 import pyperclip #this module allows #us to interact with the clipboard lyk pyperclip.paste(T, copyastext=False, Retain_properties=True)#1st the T which is the first argument is same capital T from before 2nd of all i am just showing what i think it is like

esto creo que lo que debería hacer es copiar el texto pero actúa como enlace Solo especulación

Lo siguiente es js2py, que tengo un ejemplo de html y js, que es

 <!DOCTYPE html> <html> <body> <p id="demo"></p> <script> let text = "Free Web Building Tutorials!"; let result = text.link("https://www.w3schools.com"); document.getElementById("demo").innerHTML = result; </script> </body> </html>

js2py: ejemplo de python

 import js2py Var=" The previous html file".replace("document","something") print(js2py.eval_js(Var))

Pero no puedo hacer que esto funcione. Cualquier ayuda sería apreciada. Gracias de antemano y mi PC es Windows 7 de 64 bits.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!