본문 바로가기

Restart2

Python PyCharm에서 미해결된 참조 문제, Unresolved reference issue in PyCharm 질문 저는 디렉토리 구조를 가지고 있습니다. ├── simulate.py ├── src │ ├── networkAlgorithm.py │ ├── ... 그리고 sys.path.insert()를 사용하여 네트워크 모듈에 액세스할 수 있습니다. import sys import os.path sys.path.insert(0, "./src") from networkAlgorithm import * 하지만, pycharm은 해당 모듈에 액세스할 수 없다고 불평합니다. pycharm에게 참조를 해결하는 방법을 가르칠 수 있을까요? 답변 Manually adding it as you have done is indeed one way of doing this, but there is a simpler method, a.. 2023. 10. 7.
Flutter 다른 예외가 발생했습니다: 'MyApp' 타입은 'StatelessWidget' 타입의 하위 타입이 아닙니다., Another exception was thrown: type 'MyApp' is not a subtype of type 'StatelessWidget' 질문 나는 방금 Flutter를 사용하기 시작했고 코드를 실행하는 동안이 문제가 발생했습니다. "Another exception was thrown: type 'MyApp' is not a subtype of type 'StatelessWidget'"라는 오류가 발생합니다. 흥미로운 점은 내 코드에는 'StatelessWidget'조차도 없다는 것입니다. import 'package:flutter/material.dart'; void main() { runApp(MyApp()); } class MyApp extends StatefulWidget { @override State createState() { // TODO: implement createState return _MyAppState(); } }.. 2023. 9. 22.