728x90 반응형 Programming/Python8 Python: SyntaxError: EOL while scanning string literal Python: SyntaxError: EOL while scanning string literal You are not putting a " before the end of the line. Use """ if you want to do this: """ a very long string ...... ....that can span multiple lines """ 2024. 11. 18. ModuleNotFoundError: No module named 'dotenv' pip install python-dotenv $ pip install python-dotenvCollecting python-dotenv Using cached python_dotenv-1.0.1-py3-none-any.whl.metadata (23 kB)Using cached python_dotenv-1.0.1-py3-none-any.whl (19 kB)Installing collected packages: python-dotenvSuccessfully installed python-dotenv-1.0.1[notice] A new release of pip is available: 24.0 -> 24.2[notice] To update, run: pip install --upgrade pip 2024. 8. 22. ModuleNotFoundError: No module named 'Crypto' Error EssageModuleNotFoundError: No module named 'Crypto'$ pip3 install crypto$ pip3 install pycrypto$ pip3 install cryptoCollecting crypto Using cached crypto-1.4.1-py2.py3-none-any.whl.metadata (3.4 kB)Collecting Naked (from crypto) Using cached Naked-0.1.32-py2.py3-none-any.whl.metadata (931 bytes)Collecting shellescape (from crypto) Using cached shellescape-3.8.1-py2.py3-none-any.whl.meta.. 2024. 8. 22. [python]문자열에 double quotes 추가 하는 방법 How to append double quotes to a string and store as new string? a = "Hello World"# Beautiful usage in pythonb = '"{}"'.format(a)# in python 3.6 (or above)b = f'"{a}"' 2024. 6. 19. 이전 1 2 다음 728x90 반응형